Commit d31fc06
committed
Merge #483: Fix BTC/kB conversion logic
2bb341b Add test for BTC/kb conversion (Tobin C. Harding)
eea11c3 Fix BTC/kb conversion (Tobin C. Harding)
Pull request description:
Old RPC calls use BTC/kB, we need a `FeeRate` but `v0.32` cannot elegantly handle the conversion so we do it manually - and surprise surprise its buggy.
This bug is why we spent so much time on the `FeeRate` API in `rust-bitcoin`.
The original code was written by me, was untested, and was buggy (even after I worked on the API in `rust-bitcoin`) - bad Tobin no biscuit.
Patch 2 adds a unit test and can be put before patch 1 to see the bug.
Fix: #482
ACKs for top commit:
jamillambert:
ACK 2bb341b
Tree-SHA512: f40b7d7201d723e0b747c7af6601b6e2609792476d9f5a57706c5848f74aa415bcf2c3bdd74264e74c0d1aacb530da18e740320e1f8a2e0c02ac0bff1597a5101 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
292 | 288 | | |
293 | 289 | | |
294 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
0 commit comments