diff options
| author | Gavin Andresen <[email protected]> | 2012-11-30 16:16:59 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-11-30 16:16:59 -0800 |
| commit | aaef016a07e66d555bdeba0697de2f9e313d78ae (patch) | |
| tree | b2fa1eb0e97562061229b00e293b3c5ebd7cdc2c /src | |
| parent | Merge pull request #2049 from sipa/testtmp (diff) | |
| parent | Allow -printpriority without -debug (diff) | |
| download | discoin-aaef016a07e66d555bdeba0697de2f9e313d78ae.tar.xz discoin-aaef016a07e66d555bdeba0697de2f9e313d78ae.zip | |
Merge pull request #2037 from luke-jr/printpriority
Allow -printpriority without -debug
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8279924a3..5401d4ca1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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()); |