Commit 60dbb35
committed
Fix rounding error in btc_per_kb
The function gives a `TooPreciceError` if 1e-5 is passed to it, i.e. 1
Sat / vb, due to the imprecise calculation in base2 f64.
Move the division to after the conversion to Sats to remove the rounding
error.1 parent a1e9faf commit 60dbb35
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments