aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2015-03-11 11:56:44 -0400
committerAlex Morcos <morcos@chaincode.com>2015-03-12 10:15:33 -0400
commita9af415887f03cb2565895bc55be72748549e527 (patch)
tree72c95055ea10a624e1977a69658d64e6bc2cadef /src
parentdd4ffcec0ea561e16c4621b31712166717db3e0b (diff)
downloadbitcoin-a9af415887f03cb2565895bc55be72748549e527.tar.xz
fix InvalidateBlock to repopulate setBlockIndexCandidates
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
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++;
}