Commit d4a23d6
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 4814070 commit d4a23d6
1 file changed
+3
-3
lines changed| 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