rust-bitcoin-unsafe-fast/units/src
merge-script 6d8299e8b8
Merge rust-bitcoin/rust-bitcoin#4468: Improve lock times - fix off-by-one bug
4ccecf5dec Fix stale Height type link (Tobin C. Harding)
caebb1bf73 units: relative: Do minor rustdocs fixes (Tobin C. Harding)
40bb177bc2 Put is_satisfied_by functions together (Tobin C. Harding)
480a2cd62a Favour new function `from_mtp` over deprecated (Tobin C. Harding)
f9d6453d5b Shorten locktime type term (Tobin C. Harding)
727047bd39 Fix off-by-one-bug in absolute locktime (Tobin C. Harding)
3ffdc54ca5 Fix off-by-one bug in relative locktime (Tobin C. Harding)
a2ff8ddbbb Improve relative::LockTime is_satisfied_by_{height, time} (Tobin C. Harding)

Pull request description:

  Make the APIs uniform in relative and absolute locktimes in relation to the `is_satisfied_by` functions. In doing so improve the API and fix an off-by-one bug when checking satisfaction of locks by height.

  Done in three patches but maybe should be squashed? Probably easiest to review by looking at all the `is_satisfied_by*` functions and convincing yourself we got it right.

  EDIT: Now has 5 cleanup patches also (mostly docs cleanups).

ACKs for top commit:
  apoelstra:
    ACK 4ccecf5decfead9818b74fbdee73115c349e2f3e; successfully ran local tests

Tree-SHA512: 9206cb464a06647510a35a7d564062823117e75df60251969be458616f4f5d04acf0aada53dbf7d493a2a2a72d26b3a300417a6499e45413d5f2a011538b7826
2025-05-31 15:48:29 +00:00
..
amount Move CheckedSum trait to crate root 2025-05-26 19:01:42 -05:00
fee_rate Fix typo 2025-05-28 20:06:31 -05:00
locktime Merge rust-bitcoin/rust-bitcoin#4468: Improve lock times - fix off-by-one bug 2025-05-31 15:48:29 +00:00
block.rs Merge rust-bitcoin/rust-bitcoin#4468: Improve lock times - fix off-by-one bug 2025-05-31 15:48:29 +00:00
fee.rs units: re-order ceil/floor functions 2025-05-22 10:50:34 +10:00
internal_macros.rs Create impl_mul_assign and impl_div_assign macros 2025-04-22 22:50:09 -05:00
lib.rs Implement CheckedSum for Weight iterator 2025-05-26 19:01:56 -05:00
parse.rs Use parameters instead of arguments in rustdocs 2025-04-22 10:43:13 +01:00
result.rs Merge rust-bitcoin/rust-bitcoin#4532: units: Kill mutants found in weekly mutation testing 2025-05-21 15:23:44 +00:00
time.rs units: Manually implement serde traits 2025-05-14 14:31:39 +10:00
weight.rs Implement CheckedSum for Weight iterator 2025-05-26 19:01:56 -05:00