mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Merge pull request #2037 from luke-jr/printpriority
Allow -printpriority without -debug
This commit is contained in:
commit
aaef016a07
@ -3730,6 +3730,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
||||
// Priority order to process transactions
|
||||
list<COrphan> vOrphan; // list memory doesn't move
|
||||
map<uint256, vector<COrphan*> > mapDependers;
|
||||
bool fPrintPriority = GetBoolArg("-printpriority");
|
||||
|
||||
// This vector will be sorted into a priority queue:
|
||||
vector<TxPriority> vecPriority;
|
||||
@ -3876,7 +3877,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
||||
nBlockSigOps += nTxSigOps;
|
||||
nFees += nTxFees;
|
||||
|
||||
if (fDebug && GetBoolArg("-printpriority"))
|
||||
if (fPrintPriority)
|
||||
{
|
||||
printf("priority %.1f feeperkb %.1f txid %s\n",
|
||||
dPriority, dFeePerKb, tx.GetHash().ToString().c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user