diff --git a/src/init.cpp b/src/init.cpp --- a/src/init.cpp +++ b/src/init.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -813,11 +812,6 @@ "-printtoconsole", _("Send trace/debug info to console instead of debug.log file"), false, OptionsCategory::DEBUG_TEST); - gArgs.AddArg("-printpriority", - strprintf("Log transaction priority and fee per kB when " - "mining blocks (default: %d)", - DEFAULT_PRINTPRIORITY), - true, OptionsCategory::DEBUG_TEST); gArgs.AddArg("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when " "no -debug)"), diff --git a/src/miner.h b/src/miner.h --- a/src/miner.h +++ b/src/miner.h @@ -24,8 +24,6 @@ struct Params; } -static const bool DEFAULT_PRINTPRIORITY = false; - struct CBlockTemplateEntry { CTransactionRef tx; //!< Total real fees paid by the transaction and cached to avoid parent diff --git a/src/miner.cpp b/src/miner.cpp --- a/src/miner.cpp +++ b/src/miner.cpp @@ -361,18 +361,6 @@ nBlockSigOps += iter->GetSigOpCount(); nFees += iter->GetFee(); inBlock.insert(iter); - - bool fPrintPriority = - gArgs.GetBoolArg("-printpriority", DEFAULT_PRINTPRIORITY); - if (fPrintPriority) { - double dPriority = iter->GetPriority(nHeight); - Amount dummy; - mempool->ApplyDeltas(iter->GetTx().GetId(), dPriority, dummy); - LogPrintf( - "priority %.1f fee %s txid %s\n", dPriority, - CFeeRate(iter->GetModifiedFee(), iter->GetTxSize()).ToString(), - iter->GetTx().GetId().ToString()); - } } int BlockAssembler::UpdatePackagesForAdded(