From b7930a11ab0068661dbad602c208f9fe78ff7681 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 15 Feb 2018 15:31:42 +0100 Subject: [PATCH] mempool/estimatefee: make 1 Kb = 1000 bytes This commit changes the value of bytesPerKb to 1000 from 1024. This is done to ensure consistency between the fee estimator and the mempool, where the feeRate is set to fee * 1000 / serializedSize --- mempool/estimatefee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mempool/estimatefee.go b/mempool/estimatefee.go index 234c5cf4..e3a46234 100644 --- a/mempool/estimatefee.go +++ b/mempool/estimatefee.go @@ -45,7 +45,7 @@ const ( // it will provide fee estimations. DefaultEstimateFeeMinRegisteredBlocks = 3 - bytePerKb = 1024 + bytePerKb = 1000 btcPerSatoshi = 1E-8 )