Merge #11406: Add state message print to AcceptBlock failure message.
commite12522dfdaaba989c839b429cf3b3b34fd93d171
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 4 Oct 2017 12:35:15 +0000 (4 14:35 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Wed, 4 Oct 2017 12:35:43 +0000 (4 14:35 +0200)
tree45249e97b37ad46065d57a588dadf0579915f832
parenta4c833fec104457c9ed31885821c2e5bbc7c65c4
parent6643b80d1c0134bc8ef5edd65fbe09c8b63b01d3
Merge #11406: Add state message print to AcceptBlock failure message.

6643b80 Add state message print to AcceptBlock failure message. (Matt Corallo)

Pull request description:

  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).

  This was motivated by #11371 which appears to be exactly such a case, and is not debuggable from the information provided. Not sure how much this would have helped in that case, but it is kinda weird that we can reject a block without ever printing why.

Tree-SHA512: 7a1c2c76080b810212da885c38e091609e409c62918cc326bb36a1096e09b2ae7e26fd4bdaefd79863d2894e2823e463005700a524940f177a59ef09f589b2f1
src/validation.cpp