Merge pull request #4533

43005cf Fix semantic typo in state.CorruptionPossible check (kazcw)
This commit is contained in:
Wladimir J. van der Laan 2014-07-17 13:52:11 +02:00
commit ea8c288a35
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -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;