Browse Source

Add -zdebug

pull/61/head
Duke Leto 4 years ago
parent
commit
a99b289c2a
  1. 2
      src/init.cpp
  2. 3
      src/util.cpp
  3. 1
      src/util.h
  4. 3
      src/wallet/asyncrpcoperation_sendmany.cpp

2
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<string>& categories = mapMultiArgs["-debug"];

3
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<string, string> mapArgs;
map<string, vector<string> > mapMultiArgs;
bool fDebug = false;
bool fZdebug = false;
bool fPrintToConsole = false;
bool fPrintToDebugLog = true;
bool fDaemon = false;

1
src/util.h

@ -61,6 +61,7 @@ public:
extern std::map<std::string, std::string> mapArgs;
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
extern bool fDebug;
extern bool fZdebug;
extern bool fPrintToConsole;
extern bool fPrintToDebugLog;
extern bool fServer;

3
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<boost::optional<SaplingWitness>> 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);

Loading…
Cancel
Save