added missing dirty flag for invalid chain status update
This commit is contained in:
parent
c9637f8e1c
commit
e6945bba74
1 changed files with 1 additions and 0 deletions
|
@ -2560,6 +2560,7 @@ CBlockIndex* CChainState::FindMostWorkChain() {
|
|||
while (pindexTest != pindexFailed) {
|
||||
if (fFailedChain) {
|
||||
pindexFailed->nStatus |= BLOCK_FAILED_CHILD;
|
||||
setDirtyBlockIndex.insert(pindexFailed);
|
||||
} else if (fMissingData) {
|
||||
// If we're missing data, then add back to mapBlocksUnlinked,
|
||||
// so that if the block arrives in the future we can try adding
|
||||
|
|
Loading…
Reference in a new issue