diff options
author | Alex Morcos <morcos@chaincode.com> | 2015-03-11 11:56:44 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-03-12 17:51:00 +0100 |
commit | c91c660e499ff8f92130a349226fb3200823a82d (patch) | |
tree | 3f6f1615b8c4fb6611a8c2d9b9cc42802f92bf15 /src | |
parent | 002c8a24119d205b09ee10484097a4b18f4a17a9 (diff) | |
download | bitcoin-c91c660e499ff8f92130a349226fb3200823a82d.tar.xz |
fix InvalidateBlock to repopulate setBlockIndexCandidates
Rebased-From: a9af415887f03cb2565895bc55be72748549e527
Github-Pull: #5879
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 172d43c658..ebc9418891 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2219,7 +2219,7 @@ bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex) { BlockMap::iterator it = mapBlockIndex.begin(); while (it != mapBlockIndex.end()) { if (it->second->IsValid(BLOCK_VALID_TRANSACTIONS) && it->second->nChainTx && setBlockIndexCandidates.value_comp()(chainActive.Tip(), it->second)) { - setBlockIndexCandidates.insert(pindex); + setBlockIndexCandidates.insert(it->second); } it++; } |