aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-04-28 13:52:31 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-04-28 13:53:01 +0200
commita9c8b744e8875785ff9a3768df3517b2d9ed7a36 (patch)
treefa8f6dea8040b6e5bc5118bc3f9cb42447185847
parentd9594bfe0c3e8818f5490979c3d94d752383352e (diff)
parent61c01706cd1d38023facea7f25bc1d84980f8c43 (diff)
Merge #7952: Log invalid block hash to make debugging easier.
61c0170 Log invalid block hash to make debugging easier. (Pavel Janík)
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 87f15737f3..11ccab253e 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;
}