diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-07-31 16:41:06 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-08-03 17:40:55 +0200 |
| commit | f18b8ec7cf6ebfff9eef839c6a5630ad2e6e7db6 (patch) | |
| tree | 576196cf15fe14280bf560a848404caa2825f942 /src/policy/fees.cpp | |
| parent | Merge pull request #6473 (diff) | |
| download | discoin-f18b8ec7cf6ebfff9eef839c6a5630ad2e6e7db6.tar.xz discoin-f18b8ec7cf6ebfff9eef839c6a5630ad2e6e7db6.zip | |
Make sure LogPrintf strings are line-terminated
Fix the cases where LogPrint[f] was accidentally called without line
terminator, which resulted in concatenated log lines.
(see e.g. #6492)
Diffstat (limited to 'src/policy/fees.cpp')
| -rw-r--r-- | src/policy/fees.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index b1491cec0..cdee541d2 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -249,7 +249,7 @@ unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val) unsigned int bucketindex = bucketMap.lower_bound(val)->second; unsigned int blockIndex = nBlockHeight % unconfTxs.size(); unconfTxs[blockIndex][bucketindex]++; - LogPrint("estimatefee", "adding to %s\n", dataTypeString); + LogPrint("estimatefee", "adding to %s", dataTypeString); return bucketindex; } @@ -390,8 +390,9 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo mapMemPoolTxs[hash].bucketIndex = feeStats.NewTx(txHeight, (double)feeRate.GetFeePerK()); } else { - LogPrint("estimatefee", "not adding\n"); + LogPrint("estimatefee", "not adding"); } + LogPrint("estimatefee", "\n"); } void CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxMemPoolEntry& entry) |