From bd0dbe8763fc3029cf96531c9ccaba280b939445 Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Sat, 9 Feb 2019 20:51:33 -0800 Subject: Switch away from exceptions in refactored tx code After refactoring general-purpose PSBT and transaction code out of RPC code, for use in the GUI, it's no longer appropriate to throw exceptions. Instead we now return bools for success, and take an output parameter for an error object. We still use JSONRPCError() for the error objects, since only RPC callers actually care about the error codes. --- src/rpc/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rpc/util.h') diff --git a/src/rpc/util.h b/src/rpc/util.h index d34c9cfdbb..33fca79029 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_RPC_UTIL_H #define BITCOIN_RPC_UTIL_H +#include #include #include