From c91c660e499ff8f92130a349226fb3200823a82d Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Wed, 11 Mar 2015 11:56:44 -0400 Subject: fix InvalidateBlock to repopulate setBlockIndexCandidates Rebased-From: a9af415887f03cb2565895bc55be72748549e527 Github-Pull: #5879 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- cgit v1.2.3