diff --git a/src/validation.cpp b/src/validation.cpp index 1213d8be9f..df690f2548 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4537,9 +4537,8 @@ bool ChainstateManager::AcceptBlock(const std::shared_ptr& pblock, if (!CheckBlock(block, state, params.GetConsensus()) || !ContextualCheckBlock(block, state, *this, pindex->pprev)) { - if (state.IsInvalid() && state.GetResult() != BlockValidationResult::BLOCK_MUTATED) { - pindex->nStatus |= BLOCK_FAILED_VALID; - m_blockman.m_dirty_blockindex.insert(pindex); + if (Assume(state.IsInvalid())) { + ActiveChainstate().InvalidBlockFound(pindex, state); } LogError("%s: %s\n", __func__, state.ToString()); return false;