diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-04-26 22:22:59 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-04-26 22:22:59 +0200 |
commit | 61c01706cd1d38023facea7f25bc1d84980f8c43 (patch) | |
tree | 7045880b7c38a94320b9750d2770e0f5f2fa16f6 | |
parent | 46880ed2fd961c29b5fe4f841c747951bc706912 (diff) |
Log invalid block hash to make debugging easier.
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index f6a89fa2e6..a8f8e6fa5b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } |