diff --git a/src/init.cpp b/src/init.cpp index 33ca478443172e..eb099d3a0ad49c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -500,7 +500,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-stopafterblockimport", strprintf(_("Stop running after importing blocks from disk (default: %u)"), 0)); strUsage += HelpMessageOpt("-sporkkey=", _("Enable spork administration functionality with the appropriate private key.")); } - string debugCategories = "addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, tor, mempool, net, proxy, http, libevent, pivx, (obfuscation, swiftx, masternode, mnpayments, mnbudget, zero)"; // Don't translate these and qt below + string debugCategories = "addrman, alert, bench, coindb, db, lock, rand, rpc, selectcoins, tor, mempool, net, proxy, http, libevent, pivx, (obfuscation, swiftx, masternode, mnpayments, mnbudget, zero, precompute, staking)"; // Don't translate these and qt below if (mode == HMM_BITCOIN_QT) debugCategories += ", qt"; strUsage += HelpMessageOpt("-debug=", strprintf(_("Output debugging information (default: %u, supplying is optional)"), 0) + ". " + diff --git a/src/miner.cpp b/src/miner.cpp index 0caa7c1c10b7b0..9ac6e0acdc86c9 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -165,7 +165,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet, } if (!fStakeFound) { - LogPrintf("CreateNewBlock(): stake not found\n"); + LogPrint("staking", "CreateNewBlock(): stake not found\n"); return NULL; } } diff --git a/src/util.cpp b/src/util.cpp index a3388f32acd001..aabbbe75189083 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -244,6 +244,8 @@ bool LogAcceptCategory(const char* category) ptrCategory->insert(string("mnpayments")); ptrCategory->insert(string("zero")); ptrCategory->insert(string("mnbudget")); + ptrCategory->insert(string("precompute")); + ptrCategory->insert(string("staking")); } } const set& setCategories = *ptrCategory.get(); diff --git a/src/wallet.cpp b/src/wallet.cpp index 3a16062e0625af..2dc4392dae0559 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -3001,7 +3001,7 @@ bool CWallet::CreateCoinStake( } if (listInputs.empty()) { - LogPrintf("CreateCoinStake(): listInputs empty\n"); + LogPrint("staking", "CreateCoinStake(): listInputs empty\n"); MilliSleep(50000); return false; } @@ -3106,7 +3106,7 @@ bool CWallet::CreateCoinStake( if (fKernelFound) break; // if kernel is found stop searching } - LogPrintf("%s: attempted staking %d times\n", __func__, nAttempts); + LogPrint("staking", "%s: attempted staking %d times\n", __func__, nAttempts); if (!fKernelFound) return false;