aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2018-05-09 09:03:35 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2018-05-09 10:40:33 -0400
commit11fa6bb66e8c1562305d034903a0dc6aee6eea20 (patch)
tree874cc0999fd42fa4218329f5e1de36dbe20c333d /src/validation.cpp
parent4a50ec0efd06477b4121cd1767a37ccc25632c6f (diff)
Bugfix: ensure consistency of m_failed_blocks after reconsiderblock
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index fc1f6477d5..03aaf68ef3 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -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;
}