Fix semantic typo in state.CorruptionPossible check

state.Invalid() is always false, check should be IsInvalid()

Broken since 942b33a
This commit is contained in:
kazcw 2014-07-14 18:24:21 -07:00
parent bdd5b587fc
commit 43005cffa3

View file

@ -2517,7 +2517,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
return false; return false;
if (!CheckBlock(block, state)) { if (!CheckBlock(block, state)) {
if (state.Invalid() && !state.CorruptionPossible()) { if (state.IsInvalid() && !state.CorruptionPossible()) {
pindex->nStatus |= BLOCK_FAILED_VALID; pindex->nStatus |= BLOCK_FAILED_VALID;
} }
return false; return false;