Browse Source

Bugfix: ensure consistency of m_failed_blocks after reconsiderblock

Github-Pull: #13199
Rebased-From: 11fa6bb66e8c1562305d034903a0dc6aee6eea20
pull/3/head
Suhas Daftuar 5 years ago committed by MarcoFalke
parent
commit
c71e535aec
  1. 1
      src/validation.cpp

1
src/validation.cpp

@ -2764,6 +2764,7 @@ bool CChainState::ResetBlockFailureFlags(CBlockIndex *pindex) { @@ -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