Skip to content

Commit 11fa6bb

Browse files
committed
Bugfix: ensure consistency of m_failed_blocks after reconsiderblock
1 parent 4a50ec0 commit 11fa6bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/validation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,6 +2834,7 @@ bool CChainState::ResetBlockFailureFlags(CBlockIndex *pindex) {
28342834
if (pindex->nStatus & BLOCK_FAILED_MASK) {
28352835
pindex->nStatus &= ~BLOCK_FAILED_MASK;
28362836
setDirtyBlockIndex.insert(pindex);
2837+
m_failed_blocks.erase(pindex);
28372838
}
28382839
pindex = pindex->pprev;
28392840
}

0 commit comments

Comments
 (0)