Skip to content

Commit 03507a7

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#7952: Log invalid block hash to make debugging easier.
61c0170 Log invalid block hash to make debugging easier. (Pavel Janík)
1 parent c8bb792 commit 03507a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,7 @@ static bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state
33313331
if (ppindex)
33323332
*ppindex = pindex;
33333333
if (pindex->nStatus & BLOCK_FAILED_MASK)
3334-
return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate");
3334+
return state.Invalid(error("%s: block %s is marked invalid", __func__, hash.ToString()), 0, "duplicate");
33353335
return true;
33363336
}
33373337

0 commit comments

Comments
 (0)