diff options
author | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 08:06:44 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@bitpay.com> | 2013-05-30 08:06:44 -0700 |
commit | d3977156618ae9bb448aa76f579bf57f96c375ac (patch) | |
tree | d72c05cf206d62f13b917572d896140961e28c61 /src/wallet.cpp | |
parent | 3fad76bf838f7102838985863f04e621a77dffa6 (diff) | |
parent | 0fe8010a10bafd67f9131b2da034fb9cd7fc5024 (diff) |
Merge pull request #2644 from sipa/constfindblock
Make FindBlockByHeight constant-time
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index b49f690979..27aab08ecb 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -779,7 +779,7 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate) if (AddToWalletIfInvolvingMe(tx.GetHash(), tx, &block, fUpdate)) ret++; } - pindex = pindex->pnext; + pindex = pindex->GetNextInMainChain(); } } return ret; |