Skip to content

Commit

Permalink
[Cleanup][Wallet] Remove unused nSearchInterval field in CreateCoinStake
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Jan 8, 2020
1 parent 87c369b commit 6b2b813
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/miner.cpp
Expand Up @@ -170,7 +170,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
bool fStakeFound = false;
if (nSearchTime >= nLastCoinStakeSearchTime) {
int64_t nTxNewTime = 0;
if (pwallet->CreateCoinStake(*pwallet, pindexPrev, pblock->nBits, nSearchTime - nLastCoinStakeSearchTime, txCoinStake, nTxNewTime)) {
if (pwallet->CreateCoinStake(*pwallet, pindexPrev, pblock->nBits, txCoinStake, nTxNewTime)) {
pblock->nTime = nTxNewTime;
pblock->vtx[0].vout[0].SetEmpty();
pblock->vtx.push_back(CTransaction(txCoinStake));
Expand Down
1 change: 0 additions & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -2655,7 +2655,6 @@ bool CWallet::CreateCoinStake(
const CKeyStore& keystore,
const CBlockIndex* pindexPrev,
unsigned int nBits,
int64_t nSearchInterval,
CMutableTransaction& txNew,
int64_t& nTxNewTime
)
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Expand Up @@ -449,7 +449,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, std::string strCommand = "tx");
bool AddAccountingEntry(const CAccountingEntry&, CWalletDB & pwalletdb);
int GenerateObfuscationOutputs(int nTotalValue, std::vector<CTxOut>& vout);
bool CreateCoinStake(const CKeyStore& keystore, const CBlockIndex* pindexPrev, unsigned int nBits, int64_t nSearchInterval, CMutableTransaction& txNew, int64_t& nTxNewTime);
bool CreateCoinStake(const CKeyStore& keystore, const CBlockIndex* pindexPrev, unsigned int nBits, CMutableTransaction& txNew, int64_t& nTxNewTime);
bool MultiSend();
void AutoCombineDust();
void AutoZeromint();
Expand Down

0 comments on commit 6b2b813

Please sign in to comment.