aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-01-19 14:59:28 -0500
committerAlex Morcos <morcos@chaincode.com>2017-02-27 11:23:50 -0500
commit400b15147cf1c4757927935222611e8d3481e739 (patch)
tree60b8bf57b3c698f333640daa3cc10fe4f791d445 /src/miner.cpp
parent272b25a6a99057fdcd5db5bce70b49625e973080 (diff)
downloadbitcoin-400b15147cf1c4757927935222611e8d3481e739.tar.xz
[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.
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index 1198dbb097..75c9d82a2f 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -263,11 +263,7 @@ void BlockAssembler::AddToBlock(CTxMemPool::txiter iter)
bool fPrintPriority = GetBoolArg("-printpriority", DEFAULT_PRINTPRIORITY);
if (fPrintPriority) {
- double dPriority = iter->GetPriority(nHeight);
- CAmount dummy;
- mempool.ApplyDeltas(iter->GetTx().GetHash(), dPriority, dummy);
- LogPrintf("priority %.1f fee %s txid %s\n",
- dPriority,
+ LogPrintf("fee %s txid %s\n",
CFeeRate(iter->GetModifiedFee(), iter->GetTxSize()).ToString(),
iter->GetTx().GetHash().ToString());
}