diff options
author | Alex Morcos <morcos@chaincode.com> | 2015-03-11 11:56:44 -0400 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2015-03-12 10:15:33 -0400 |
commit | a9af415887f03cb2565895bc55be72748549e527 (patch) | |
tree | 72c95055ea10a624e1977a69658d64e6bc2cadef /src/main.cpp | |
parent | dd4ffcec0ea561e16c4621b31712166717db3e0b (diff) |
fix InvalidateBlock to repopulate setBlockIndexCandidates
Diffstat (limited to 'src/main.cpp')
-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 6bbb3bc135..9b4bb43128 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2311,7 +2311,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++; } |