Log invalid block hash to make debugging easier.

This commit is contained in:
Pavel Janík
2016-04-26 22:22:59 +02:00
committed by lateminer
parent 2b38900afd
commit e670323162

View File

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