mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Allow -printpriority without -debug
This commit is contained in:
parent
3ed1ccb089
commit
2646080e3d
@ -3731,6 +3731,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
|||||||
// Priority order to process transactions
|
// Priority order to process transactions
|
||||||
list<COrphan> vOrphan; // list memory doesn't move
|
list<COrphan> vOrphan; // list memory doesn't move
|
||||||
map<uint256, vector<COrphan*> > mapDependers;
|
map<uint256, vector<COrphan*> > mapDependers;
|
||||||
|
bool fPrintPriority = GetBoolArg("-printpriority");
|
||||||
|
|
||||||
// This vector will be sorted into a priority queue:
|
// This vector will be sorted into a priority queue:
|
||||||
vector<TxPriority> vecPriority;
|
vector<TxPriority> vecPriority;
|
||||||
@ -3877,7 +3878,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
|||||||
nBlockSigOps += nTxSigOps;
|
nBlockSigOps += nTxSigOps;
|
||||||
nFees += nTxFees;
|
nFees += nTxFees;
|
||||||
|
|
||||||
if (fDebug && GetBoolArg("-printpriority"))
|
if (fPrintPriority)
|
||||||
{
|
{
|
||||||
printf("priority %.1f feeperkb %.1f txid %s\n",
|
printf("priority %.1f feeperkb %.1f txid %s\n",
|
||||||
dPriority, dFeePerKb, tx.GetHash().ToString().c_str());
|
dPriority, dFeePerKb, tx.GetHash().ToString().c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user