This commit is contained in:
jl777
2016-10-20 20:20:38 -03:00
parent 750cb34a18
commit 34ad681a42
2 changed files with 3 additions and 3 deletions

View File

@@ -3132,7 +3132,7 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
pindex = miSelf->second;
if (ppindex)
*ppindex = pindex;
if (pindex->nStatus & BLOCK_FAILED_MASK)
if (pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK)
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
return true;
}