Bugfix: ensure consistency of m_failed_blocks after reconsiderblock

Github-Pull: #13199
Rebased-From: 11fa6bb66e8c1562305d034903a0dc6aee6eea20
This commit is contained in:
Suhas Daftuar 2018-05-09 09:03:35 -04:00 committed by MarcoFalke
parent 50b2c9e0df
commit c71e535aec

View File

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