From 43005cffa394afde08a80b28ac52f7821c96d841 Mon Sep 17 00:00:00 2001 From: kazcw Date: Mon, 14 Jul 2014 18:24:21 -0700 Subject: [PATCH] Fix semantic typo in state.CorruptionPossible check state.Invalid() is always false, check should be IsInvalid() Broken since 942b33a --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;