Merge #7952: Log invalid block hash to make debugging easier.

61c0170 Log invalid block hash to make debugging easier. (Pavel Janík)
This commit is contained in:
Wladimir J. van der Laan 2016-04-28 13:52:31 +02:00
commit a9c8b744e8
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -3371,7 +3371,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;
}