You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #327: Add testmempoolaccept test and update structs
7401356 Run the formatter (jamillambert)
5f9d6f5 Add testmempoolaccept test and update structs (jamillambert)
60dbb35 Fix rounding error in btc_per_kb (Jamil Lambert, PhD)
Pull request description:
`testmempoolaccept` is untested and missing return fields added in versions after v17.
The helper function `btc_per_kb` returned a `TooPreciseError` with 1e-5 `btc_per_kb` which should work. Due to the imprecise representation of 1e-5 in binary in f64, and when divided by 1000 and converting to sats results in 0.9999999999999998 not 1.0. Rounding is not possible since it will remove all occurances of `TooPreciseError`.
- Update `btc_per_kb` to do the division by 1000 after creating the `Amount` in sats.
- Add a test for `testmempoolaccept` and redefine the struct, model and into_model functions for changes in the RPC for all versions up to 29.
- Run the formatter
ACKs for top commit:
tcharding:
ACK 7401356
Tree-SHA512: 8d8c26bab040458e786620843e1305e19d79c612c930fd20afd307a68b750598d5142d44d696b46afd6ba94e6b877962a22faf393bf81a8a630d6cf62eaa4e5b
0 commit comments