diff --git a/src/init.cpp b/src/init.cpp index 1ec224643..36ed5e0cb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1151,6 +1151,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) // ********************************************************* Step 3: parameter-to-internal-flags + fZdebug=GetBoolArg("-zdebug", false); + fDebug = !mapMultiArgs["-debug"].empty(); // Special-case: if -debug=0/-nodebug is set, turn off debugging messages const vector& categories = mapMultiArgs["-debug"]; diff --git a/src/util.cpp b/src/util.cpp index abffa7a0e..d6ceb1997 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers -// Copyright (c) 2019 The Hush developers +// Copyright (c) 2019-2020 The Hush developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -121,6 +121,7 @@ using namespace std; map mapArgs; map > mapMultiArgs; bool fDebug = false; +bool fZdebug = false; bool fPrintToConsole = false; bool fPrintToDebugLog = true; bool fDaemon = false; diff --git a/src/util.h b/src/util.h index b0c0b32ea..2e8232871 100644 --- a/src/util.h +++ b/src/util.h @@ -61,6 +61,7 @@ public: extern std::map mapArgs; extern std::map > mapMultiArgs; extern bool fDebug; +extern bool fZdebug; extern bool fPrintToConsole; extern bool fPrintToDebugLog; extern bool fServer; diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 0230b57d0..383f16a98 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -479,7 +479,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { } // Fetch Sapling anchor and witnesses - LogPrintf("%s: Gathering anchors and witnesses\n", __FUNCTION__); + //LogPrintf("%s: Gathering anchors and witnesses\n", __FUNCTION__); uint256 anchor; std::vector> witnesses; { @@ -496,7 +496,6 @@ bool AsyncRPCOperation_sendmany::main_impl() { } // Add Sapling outputs - LogPrintf("%s: Adding Sapling outputs\n", __FUNCTION__); for (auto r : z_outputs_) { auto address = std::get<0>(r); auto value = std::get<1>(r);