diff --git a/src/main.cpp b/src/main.cpp index 4f6b442f3a3..830bcb5489c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2517,7 +2517,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex, return false; if (!CheckBlock(block, state)) { - if (state.Invalid() && !state.CorruptionPossible()) { + if (state.IsInvalid() && !state.CorruptionPossible()) { pindex->nStatus |= BLOCK_FAILED_VALID; } return false;