Skip to content

Commit 6643b80

Browse files
committed
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).
1 parent dc597bb commit 6643b80

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
@@ -3189,7 +3189,7 @@ bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<cons
31893189
CheckBlockIndex(chainparams.GetConsensus());
31903190
if (!ret) {
31913191
GetMainSignals().BlockChecked(*pblock, state);
3192-
return error("%s: AcceptBlock FAILED", __func__);
3192+
return error("%s: AcceptBlock FAILED (%s)", __func__, state.GetDebugMessage());
31933193
}
31943194
}
31953195

0 commit comments

Comments
 (0)