diff options
author | kazcw <keziahw@gmail.com> | 2014-07-14 18:24:21 -0700 |
---|---|---|
committer | kazcw <keziahw@gmail.com> | 2014-07-14 19:57:43 -0700 |
commit | 43005cffa394afde08a80b28ac52f7821c96d841 (patch) | |
tree | abc966be20b9336a97c6cb3f60dd84810da91da6 | |
parent | bdd5b587fc7fd1b4dda479c4aad15c874b22e8f3 (diff) |
Fix semantic typo in state.CorruptionPossible check
state.Invalid() is always false, check should be IsInvalid()
Broken since 942b33a
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4f6b442f3a..830bcb5489 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; |