Skip to content

Commit

Permalink
Used wtxOrderd to make sure we get the correct nTime for first stake
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed May 19, 2019
1 parent b57760a commit 0513d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/rpcwallet.cpp
Expand Up @@ -3185,9 +3185,9 @@ int64_t GetFirstStakeTime()
const CWalletTx* tx;

// scan the entire wallet transactions
for (auto it = pwalletMain->mapWallet.end(); it != pwalletMain->mapWallet.begin(); --it)
for (auto it = pwalletMain->wtxOrdered.begin(); it != pwalletMain->wtxOrdered.end(); ++it)
{
tx = &(*it).second;
tx = (*it).second.first;

// Check if we have a useable tx
if (IsTxCountedAsStaked(tx))
Expand Down

0 comments on commit 0513d24

Please sign in to comment.