Skip to content

Commit 43005cf

Browse files
committed
Fix semantic typo in state.CorruptionPossible check
state.Invalid() is always false, check should be IsInvalid() Broken since 942b33a
1 parent bdd5b58 commit 43005cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2517,7 +2517,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
25172517
return false;
25182518

25192519
if (!CheckBlock(block, state)) {
2520-
if (state.Invalid() && !state.CorruptionPossible()) {
2520+
if (state.IsInvalid() && !state.CorruptionPossible()) {
25212521
pindex->nStatus |= BLOCK_FAILED_VALID;
25222522
}
25232523
return false;

0 commit comments

Comments
 (0)