From 0d7f52660096c5a22f2cb95c102e0693f773a593 Mon Sep 17 00:00:00 2001 From: Jonathan Gillham Date: Wed, 27 Apr 2016 20:09:23 +0100 Subject: [PATCH] mining: Correctly format log messages. (#685) Type feePerKB is an int64 and therefore is not correctly interpreted by format verb f. --- mining.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mining.go b/mining.go index e38806a8..ccf3d34a 100644 --- a/mining.go +++ b/mining.go @@ -609,7 +609,7 @@ mempoolLoop: prioItem.feePerKB < int64(policy.TxMinFreeFee) && blockPlusTxSize >= policy.BlockMinSize { - minrLog.Tracef("Skipping tx %s with feePerKB %.2f "+ + minrLog.Tracef("Skipping tx %s with feePerKB %d "+ "< TxMinFreeFee %d and block size %d >= "+ "minBlockSize %d", tx.Sha(), prioItem.feePerKB, policy.TxMinFreeFee, blockPlusTxSize, @@ -682,7 +682,7 @@ mempoolLoop: txFees = append(txFees, prioItem.fee) txSigOpCounts = append(txSigOpCounts, numSigOps) - minrLog.Tracef("Adding tx %s (priority %.2f, feePerKB %.2f)", + minrLog.Tracef("Adding tx %s (priority %.2f, feePerKB %d)", prioItem.tx.Sha(), prioItem.priority, prioItem.feePerKB) // Add transactions which depend on this one (and also do not