diff options
| author | Jeff Garzik <[email protected]> | 2013-05-30 08:06:44 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-05-30 08:06:44 -0700 |
| commit | d3977156618ae9bb448aa76f579bf57f96c375ac (patch) | |
| tree | d72c05cf206d62f13b917572d896140961e28c61 /src/wallet.cpp | |
| parent | Merge pull request #2642 from sipa/rightgenesis (diff) | |
| parent | Make FindBlockByHeight constant-time. (diff) | |
| download | discoin-d3977156618ae9bb448aa76f579bf57f96c375ac.tar.xz discoin-d3977156618ae9bb448aa76f579bf57f96c375ac.zip | |
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 b49f69097..27aab08ec 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; |