Skip to content

Commit

Permalink
mempool/estimatefee: make 1 Kb = 1000 bytes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
halseth authored and Roasbeef committed Feb 16, 2018
1 parent 9978b93 commit 2fc9884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mempool/estimatefee.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
// it will provide fee estimations.
DefaultEstimateFeeMinRegisteredBlocks = 3

bytePerKb = 1024
bytePerKb = 1000

btcPerSatoshi = 1E-8
)
Expand Down

0 comments on commit 2fc9884

Please sign in to comment.