From faeb6665362e35f573ad715ade0ef2db62d71839 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 23 Sep 2019 14:45:51 -0400 Subject: [PATCH] util: Add CHECK_NONFATAL and use it in src/rpc --- src/Makefile.am | 1 + src/rpc/blockchain.cpp | 3 +-- src/rpc/misc.cpp | 8 ++++++-- src/rpc/util.h | 13 ++++++------ src/util/check.h | 41 +++++++++++++++++++++++++++++++++++++ test/functional/rpc_misc.py | 7 +++++++ 6 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 src/util/check.h diff --git a/src/Makefile.am b/src/Makefile.am index d50524a8ae7..69d380175d7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -206,6 +206,7 @@ BITCOIN_CORE_H = \ undo.h \ util/bip32.h \ util/bytevectorhash.h \ + util/check.h \ util/error.h \ util/fees.h \ util/spanparsing.h \ diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 4bbd4aaf64f..fac6bcd60db 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -10,11 +10,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include @@ -34,7 +34,6 @@ #include #include -#include #include #include diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index d289274a379..d73dd6e52d9 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -3,15 +3,16 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include +#include #include #include #include #include #include