Add -zdebug
This commit is contained in:
@@ -1151,6 +1151,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
|
|
||||||
// ********************************************************* Step 3: parameter-to-internal-flags
|
// ********************************************************* Step 3: parameter-to-internal-flags
|
||||||
|
|
||||||
|
fZdebug=GetBoolArg("-zdebug", false);
|
||||||
|
|
||||||
fDebug = !mapMultiArgs["-debug"].empty();
|
fDebug = !mapMultiArgs["-debug"].empty();
|
||||||
// Special-case: if -debug=0/-nodebug is set, turn off debugging messages
|
// Special-case: if -debug=0/-nodebug is set, turn off debugging messages
|
||||||
const vector<string>& categories = mapMultiArgs["-debug"];
|
const vector<string>& categories = mapMultiArgs["-debug"];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
||||||
// Copyright (c) 2009-2014 The Bitcoin Core developers
|
// 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
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
@@ -121,6 +121,7 @@ using namespace std;
|
|||||||
map<string, string> mapArgs;
|
map<string, string> mapArgs;
|
||||||
map<string, vector<string> > mapMultiArgs;
|
map<string, vector<string> > mapMultiArgs;
|
||||||
bool fDebug = false;
|
bool fDebug = false;
|
||||||
|
bool fZdebug = false;
|
||||||
bool fPrintToConsole = false;
|
bool fPrintToConsole = false;
|
||||||
bool fPrintToDebugLog = true;
|
bool fPrintToDebugLog = true;
|
||||||
bool fDaemon = false;
|
bool fDaemon = false;
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ public:
|
|||||||
extern std::map<std::string, std::string> mapArgs;
|
extern std::map<std::string, std::string> mapArgs;
|
||||||
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
|
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
|
||||||
extern bool fDebug;
|
extern bool fDebug;
|
||||||
|
extern bool fZdebug;
|
||||||
extern bool fPrintToConsole;
|
extern bool fPrintToConsole;
|
||||||
extern bool fPrintToDebugLog;
|
extern bool fPrintToDebugLog;
|
||||||
extern bool fServer;
|
extern bool fServer;
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ bool AsyncRPCOperation_sendmany::main_impl() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fetch Sapling anchor and witnesses
|
// Fetch Sapling anchor and witnesses
|
||||||
LogPrintf("%s: Gathering anchors and witnesses\n", __FUNCTION__);
|
//LogPrintf("%s: Gathering anchors and witnesses\n", __FUNCTION__);
|
||||||
uint256 anchor;
|
uint256 anchor;
|
||||||
std::vector<boost::optional<SaplingWitness>> witnesses;
|
std::vector<boost::optional<SaplingWitness>> witnesses;
|
||||||
{
|
{
|
||||||
@@ -496,7 +496,6 @@ bool AsyncRPCOperation_sendmany::main_impl() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add Sapling outputs
|
// Add Sapling outputs
|
||||||
LogPrintf("%s: Adding Sapling outputs\n", __FUNCTION__);
|
|
||||||
for (auto r : z_outputs_) {
|
for (auto r : z_outputs_) {
|
||||||
auto address = std::get<0>(r);
|
auto address = std::get<0>(r);
|
||||||
auto value = std::get<1>(r);
|
auto value = std::get<1>(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user