diff options
author | Matt Corallo <git@bluematt.me> | 2017-09-26 16:23:41 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-09-26 16:23:41 -0400 |
commit | 6643b80d1c0134bc8ef5edd65fbe09c8b63b01d3 (patch) | |
tree | fff1132fbeeae251d64b42682e5229b860ee4dd4 /src/validation.cpp | |
parent | dc597bb895ef4b74d8564253813c2d140e76c2d6 (diff) |
Add state message print to AcceptBlock failure message.
This should make it easier to debug issues where the CheckBlock at
the top of ProcessNewBlock fails (which does not print, in contrast
to AcceptBlock, which always prints).
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index bd9640e749..7a0db1c50a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3189,7 +3189,7 @@ bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<cons CheckBlockIndex(chainparams.GetConsensus()); if (!ret) { GetMainSignals().BlockChecked(*pblock, state); - return error("%s: AcceptBlock FAILED", __func__); + return error("%s: AcceptBlock FAILED (%s)", __func__, state.GetDebugMessage()); } } |