Skip to content

Commit 6b2b813

Browse files
committed
[Cleanup][Wallet] Remove unused nSearchInterval field in CreateCoinStake
1 parent 87c369b commit 6b2b813

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
170170
bool fStakeFound = false;
171171
if (nSearchTime >= nLastCoinStakeSearchTime) {
172172
int64_t nTxNewTime = 0;
173-
if (pwallet->CreateCoinStake(*pwallet, pindexPrev, pblock->nBits, nSearchTime - nLastCoinStakeSearchTime, txCoinStake, nTxNewTime)) {
173+
if (pwallet->CreateCoinStake(*pwallet, pindexPrev, pblock->nBits, txCoinStake, nTxNewTime)) {
174174
pblock->nTime = nTxNewTime;
175175
pblock->vtx[0].vout[0].SetEmpty();
176176
pblock->vtx.push_back(CTransaction(txCoinStake));

src/wallet/wallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,6 @@ bool CWallet::CreateCoinStake(
26552655
const CKeyStore& keystore,
26562656
const CBlockIndex* pindexPrev,
26572657
unsigned int nBits,
2658-
int64_t nSearchInterval,
26592658
CMutableTransaction& txNew,
26602659
int64_t& nTxNewTime
26612660
)

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
449449
bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, std::string strCommand = "tx");
450450
bool AddAccountingEntry(const CAccountingEntry&, CWalletDB & pwalletdb);
451451
int GenerateObfuscationOutputs(int nTotalValue, std::vector<CTxOut>& vout);
452-
bool CreateCoinStake(const CKeyStore& keystore, const CBlockIndex* pindexPrev, unsigned int nBits, int64_t nSearchInterval, CMutableTransaction& txNew, int64_t& nTxNewTime);
452+
bool CreateCoinStake(const CKeyStore& keystore, const CBlockIndex* pindexPrev, unsigned int nBits, CMutableTransaction& txNew, int64_t& nTxNewTime);
453453
bool MultiSend();
454454
void AutoCombineDust();
455455
void AutoZeromint();

0 commit comments

Comments
 (0)