Bugfix: ensure consistency of m_failed_blocks after reconsiderblock

This commit is contained in:
Suhas Daftuar 2018-05-09 09:03:35 -04:00
parent 4a50ec0efd
commit 11fa6bb66e

View File

@ -2834,6 +2834,7 @@ bool CChainState::ResetBlockFailureFlags(CBlockIndex *pindex) {
if (pindex->nStatus & BLOCK_FAILED_MASK) {
pindex->nStatus &= ~BLOCK_FAILED_MASK;
setDirtyBlockIndex.insert(pindex);
m_failed_blocks.erase(pindex);
}
pindex = pindex->pprev;
}