From f113e2d4e6202fc754c8944bfb41bf1328cb5366 Mon Sep 17 00:00:00 2001 From: Jon Layton Date: Mon, 4 Jun 2018 14:53:12 -0500 Subject: [PATCH] [logging] BCLog::ZRPC and ZRPCUNSAFE, gArgs --- src/logging.cpp | 2 + src/logging.h | 2 + .../asyncrpcoperation_mergetoaddress.cpp | 37 ++++++++-------- src/wallet/asyncrpcoperation_sendmany.cpp | 44 +++++++++---------- .../asyncrpcoperation_shieldcoinbase.cpp | 24 +++++----- 5 files changed, 57 insertions(+), 52 deletions(-) diff --git a/src/logging.cpp b/src/logging.cpp index ded48e8eb..af6628025 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -121,6 +121,8 @@ const CLogCategoryDesc LogCategories[] = {BCLog::LEVELDB, "leveldb"}, {BCLog::EQUIHASH, "equihash"}, {BCLog::PAYMENTDISCLOSURE, "paymentdisclosure"}, + {BCLog::ZRPC, "zrpc"}, + {BCLog::ZRPCUNSAFE, "zrpcunsafe"}, {BCLog::ALL, "1"}, {BCLog::ALL, "all"}, }; diff --git a/src/logging.h b/src/logging.h index 71eb03da3..5f06b5c92 100644 --- a/src/logging.h +++ b/src/logging.h @@ -55,6 +55,8 @@ namespace BCLog { LEVELDB = (1 << 20), EQUIHASH = (1 << 21), PAYMENTDISCLOSURE = (1 << 22), + ZRPC = (1 << 23), + ZRPCUNSAFE = (1 << 24), ALL = ~(uint32_t)0, }; diff --git a/src/wallet/asyncrpcoperation_mergetoaddress.cpp b/src/wallet/asyncrpcoperation_mergetoaddress.cpp index f35560995..88e88763d 100644 --- a/src/wallet/asyncrpcoperation_mergetoaddress.cpp +++ b/src/wallet/asyncrpcoperation_mergetoaddress.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include