Skip to content

Commit

Permalink
Optimized the nWalletFirstStake loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed Jun 11, 2019
1 parent 19f793f commit f39d4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Expand Up @@ -3191,7 +3191,7 @@ int64_t GetFirstStakeTime()
const CWalletTx* tx;

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

Expand Down

0 comments on commit f39d4e5

Please sign in to comment.