Skip to content

Commit

Permalink
fix InvalidateBlock to repopulate setBlockIndexCandidates
Browse files Browse the repository at this point in the history
Rebased-From: a9af415
Github-Pull: #5879
  • Loading branch information
morcos authored and laanwj committed Mar 12, 2015
1 parent 002c8a2 commit c91c660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit c91c660

Please sign in to comment.