Skip to content

Commit a9af415

Browse files
committed
fix InvalidateBlock to repopulate setBlockIndexCandidates
1 parent dd4ffce commit a9af415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2311,7 +2311,7 @@ bool InvalidateBlock(CValidationState& state, CBlockIndex *pindex) {
23112311
BlockMap::iterator it = mapBlockIndex.begin();
23122312
while (it != mapBlockIndex.end()) {
23132313
if (it->second->IsValid(BLOCK_VALID_TRANSACTIONS) && it->second->nChainTx && setBlockIndexCandidates.value_comp()(chainActive.Tip(), it->second)) {
2314-
setBlockIndexCandidates.insert(pindex);
2314+
setBlockIndexCandidates.insert(it->second);
23152315
}
23162316
it++;
23172317
}

0 commit comments

Comments
 (0)