diff options
| author | Matt Corallo <[email protected]> | 2017-09-26 16:23:41 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-09-26 16:23:41 -0400 |
| commit | 6643b80d1c0134bc8ef5edd65fbe09c8b63b01d3 (patch) | |
| tree | fff1132fbeeae251d64b42682e5229b860ee4dd4 /src/validation.cpp | |
| parent | Merge #11225: wallet: update stored witness in AddToWallet (diff) | |
| download | discoin-6643b80d1c0134bc8ef5edd65fbe09c8b63b01d3.tar.xz discoin-6643b80d1c0134bc8ef5edd65fbe09c8b63b01d3.zip | |
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 bd9640e74..7a0db1c50 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()); } } |