Skip to content

Commit 35dae21

Browse files
committed
[Cleanup][Trivial] Remove unused variable nStakeSetUpdateTime in wallet
1 parent f95af41 commit 35dae21

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/libzerocoin/Commitment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Commitment {
4242
}
4343

4444
Commitment(const IntegerGroupParams* p, const CBigNum& value):
45-
Commitment(p, value, CBigNum::randBignum(params->groupOrder)) {};
45+
Commitment(p, value, CBigNum::randBignum(p->groupOrder)) {};
4646

4747
const CBigNum& getCommitmentValue() const { return this->commitmentValue; };
4848
const CBigNum& getRandomness() const { return this->randomness; };

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3797,14 +3797,14 @@ void CWallet::SetNull()
37973797
nTimeFirstKey = 0;
37983798
fWalletUnlockAnonymizeOnly = false;
37993799

3800-
// Stake Settings
3800+
// Staker status (last hashed block and time)
38013801
if (pStakerStatus) {
38023802
pStakerStatus->SetNull();
38033803
} else {
38043804
pStakerStatus = new CStakerStatus();
38053805
}
3806+
// Stake split threshold
38063807
nStakeSplitThreshold = STAKE_SPLIT_THRESHOLD;
3807-
nStakeSetUpdateTime = 300; // 5 minutes
38083808

38093809
//MultiSend
38103810
vMultiSend.clear();

src/wallet/wallet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
227227
MasterKeyMap mapMasterKeys;
228228
unsigned int nMasterKeyMaxID;
229229

230-
// Stake Settings
230+
// Stake split threshold
231231
uint64_t nStakeSplitThreshold;
232-
int nStakeSetUpdateTime;
232+
// Staker status (last hashed block and time)
233233
CStakerStatus* pStakerStatus = nullptr;
234234

235235
//MultiSend

0 commit comments

Comments
 (0)