mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Fix semantic typo in state.CorruptionPossible check
state.Invalid() is always false, check should be IsInvalid()
Broken since 942b33a
This commit is contained in:
parent
bdd5b587fc
commit
43005cffa3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user