[debug] Change -printpriority option
-printpriority output is now changed to only show the fee rate and hash of transactions included in a block by the mining code.
This commit is contained in:
parent
272b25a6a9
commit
400b15147c
2 changed files with 2 additions and 6 deletions
|
@ -456,7 +456,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
||||||
strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file"));
|
strUsage += HelpMessageOpt("-printtoconsole", _("Send trace/debug info to console instead of debug.log file"));
|
||||||
if (showDebug)
|
if (showDebug)
|
||||||
{
|
{
|
||||||
strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction priority and fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY));
|
strUsage += HelpMessageOpt("-printpriority", strprintf("Log transaction fee per kB when mining blocks (default: %u)", DEFAULT_PRINTPRIORITY));
|
||||||
}
|
}
|
||||||
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));
|
strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)"));
|
||||||
|
|
||||||
|
|
|
@ -263,11 +263,7 @@ void BlockAssembler::AddToBlock(CTxMemPool::txiter iter)
|
||||||
|
|
||||||
bool fPrintPriority = GetBoolArg("-printpriority", DEFAULT_PRINTPRIORITY);
|
bool fPrintPriority = GetBoolArg("-printpriority", DEFAULT_PRINTPRIORITY);
|
||||||
if (fPrintPriority) {
|
if (fPrintPriority) {
|
||||||
double dPriority = iter->GetPriority(nHeight);
|
LogPrintf("fee %s txid %s\n",
|
||||||
CAmount dummy;
|
|
||||||
mempool.ApplyDeltas(iter->GetTx().GetHash(), dPriority, dummy);
|
|
||||||
LogPrintf("priority %.1f fee %s txid %s\n",
|
|
||||||
dPriority,
|
|
||||||
CFeeRate(iter->GetModifiedFee(), iter->GetTxSize()).ToString(),
|
CFeeRate(iter->GetModifiedFee(), iter->GetTxSize()).ToString(),
|
||||||
iter->GetTx().GetHash().ToString());
|
iter->GetTx().GetHash().ToString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue