Browse Source

Bugfix: ensure consistency of m_failed_blocks after reconsiderblock

Github-Pull: #13199
Rebased-From: 11fa6bb66e
tags/v0.16.1
Suhas Daftuar 2 years ago
parent
commit
c71e535aec
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/validation.cpp

+ 1
- 0
src/validation.cpp 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;
}

Loading…
Cancel
Save