Permalink
Browse files

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

61c0170 Log invalid block hash to make debugging easier. (Pavel Janík)
  • Loading branch information...
laanwj committed Apr 28, 2016
2 parents d9594bf + 61c0170 commit a9c8b744e8875785ff9a3768df3517b2d9ed7a36
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.cpp
View
@@ -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;
}

0 comments on commit a9c8b74

Please sign in to comment.