Move some (spamy) CMasternodeSync log messages to new mnsync
log category (#1630)
This commit is contained in:
parent
4956ba7a7f
commit
10eddb52de
@ -545,7 +545,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
|||||||
strUsage += HelpMessageOpt("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT));
|
strUsage += HelpMessageOpt("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT));
|
||||||
}
|
}
|
||||||
string debugCategories = "addrman, alert, bench, coindb, db, http, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, "
|
string debugCategories = "addrman, alert, bench, coindb, db, http, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, "
|
||||||
"dash (or specifically: privatesend, instantsend, masternode, spork, keepass, mnpayments, gobject)"; // Don't translate these and qt below
|
"dash (or specifically: gobject, instantsend, keepass, masternode, mnpayments, mnsync, privatesend, spork)"; // Don't translate these and qt below
|
||||||
if (mode == HMM_BITCOIN_QT)
|
if (mode == HMM_BITCOIN_QT)
|
||||||
debugCategories += ", qt";
|
debugCategories += ", qt";
|
||||||
strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " +
|
strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " +
|
||||||
|
@ -36,7 +36,7 @@ void CMasternodeSync::BumpAssetLastTime(std::string strFuncName)
|
|||||||
{
|
{
|
||||||
if(IsSynced() || IsFailed()) return;
|
if(IsSynced() || IsFailed()) return;
|
||||||
nTimeLastBumped = GetTime();
|
nTimeLastBumped = GetTime();
|
||||||
if(fDebug) LogPrintf("CMasternodeSync::BumpAssetLastTime -- %s\n", strFuncName);
|
LogPrint("mnsync", "CMasternodeSync::BumpAssetLastTime -- %s\n", strFuncName);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CMasternodeSync::GetAssetName()
|
std::string CMasternodeSync::GetAssetName()
|
||||||
@ -412,8 +412,7 @@ void CMasternodeSync::SendGovernanceSyncRequest(CNode* pnode)
|
|||||||
|
|
||||||
void CMasternodeSync::AcceptedBlockHeader(const CBlockIndex *pindexNew)
|
void CMasternodeSync::AcceptedBlockHeader(const CBlockIndex *pindexNew)
|
||||||
{
|
{
|
||||||
if (fDebug)
|
LogPrint("mnsync", "CMasternodeSync::AcceptedBlockHeader -- pindexNew->nHeight: %d\n", pindexNew->nHeight);
|
||||||
LogPrintf("CMasternodeSync::AcceptedBlockHeader -- pindexNew->nHeight: %d\n", pindexNew->nHeight);
|
|
||||||
|
|
||||||
if (!IsBlockchainSynced()) {
|
if (!IsBlockchainSynced()) {
|
||||||
// Postpone timeout each time new block header arrives while we are still syncing blockchain
|
// Postpone timeout each time new block header arrives while we are still syncing blockchain
|
||||||
@ -423,8 +422,7 @@ void CMasternodeSync::AcceptedBlockHeader(const CBlockIndex *pindexNew)
|
|||||||
|
|
||||||
void CMasternodeSync::NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload)
|
void CMasternodeSync::NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload)
|
||||||
{
|
{
|
||||||
if (fDebug)
|
LogPrint("mnsync", "CMasternodeSync::NotifyHeaderTip -- pindexNew->nHeight: %d fInitialDownload=%d\n", pindexNew->nHeight, fInitialDownload);
|
||||||
LogPrintf("CMasternodeSync::NotifyHeaderTip -- pindexNew->nHeight: %d fInitialDownload=%d\n", pindexNew->nHeight, fInitialDownload);
|
|
||||||
|
|
||||||
if (IsFailed() || IsSynced() || !pindexBestHeader)
|
if (IsFailed() || IsSynced() || !pindexBestHeader)
|
||||||
return;
|
return;
|
||||||
@ -454,8 +452,7 @@ void CMasternodeSync::NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitia
|
|||||||
|
|
||||||
fReachedBestHeader = fReachedBestHeaderNew;
|
fReachedBestHeader = fReachedBestHeaderNew;
|
||||||
|
|
||||||
if (fDebug)
|
LogPrint("mnsync", "CMasternodeSync::NotifyHeaderTip -- pindexNew->nHeight: %d pindexBestHeader->nHeight: %d fInitialDownload=%d fReachedBestHeader=%d\n",
|
||||||
LogPrintf("CMasternodeSync::NotifyHeaderTip -- pindexNew->nHeight: %d pindexBestHeader->nHeight: %d fInitialDownload=%d fReachedBestHeader=%d\n",
|
|
||||||
pindexNew->nHeight, pindexBestHeader->nHeight, fInitialDownload, fReachedBestHeader);
|
pindexNew->nHeight, pindexBestHeader->nHeight, fInitialDownload, fReachedBestHeader);
|
||||||
|
|
||||||
if (!IsBlockchainSynced() && fReachedBestHeader) {
|
if (!IsBlockchainSynced() && fReachedBestHeader) {
|
||||||
|
Loading…
Reference in New Issue
Block a user