mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Bugfix: ensure consistency of m_failed_blocks after reconsiderblock
This commit is contained in:
parent
4a50ec0efd
commit
11fa6bb66e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue