From 8f37ea509e4e6f531d894acef9f9be1d6f4eceb5 Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Mon, 29 Jun 2020 23:07:41 -0700 Subject: [PATCH] Improve logging of failures during block signature validation Pass in a ValidationState object to CheckProof and friends, so that we can provide helpful error messages when validation fails. --- src/block_proof.cpp | 34 +++++++++++++++++++++++++--------- src/block_proof.h | 3 ++- src/rpc/mining.cpp | 3 ++- src/txdb.cpp | 7 +++++-- src/validation.cpp | 12 ++++++------ 5 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/block_proof.cpp b/src/block_proof.cpp index 28e9e98dca..7d1b010c62 100644 --- a/src/block_proof.cpp +++ b/src/block_proof.cpp @@ -6,9 +6,12 @@ #include #include +#include #include #include