rust-bitcoin-unsafe-fast/units/src
merge-script 27f6f17974
Merge rust-bitcoin/rust-bitcoin#3430: Add checked div by weight to amount
a0c58a4a8b Add checked weight division to Amount (yancy)
8def40a991 Add assertions to checked_weight_mul test (yancy)
16ce70d3a6 Add div_by_weight test to fee_rate (yancy)

Pull request description:

  Adds the checked variant of `amount / weight`.  I also added a test to the non-checked version for comparison so the reviewer knows they compute the same way (integer division rounded down).

  Also added assertion to `checked_weight_mul test` showing the results are rounded up.

ACKs for top commit:
  tcharding:
    ACK a0c58a4a8b
  apoelstra:
    ACK a0c58a4a8b successfully ran local tests

Tree-SHA512: cf14123ed261d100e3261a720c26f8c10368f05225e32eaa246f25ab766d20515db5feb98335d4e3e08a8146a70db65ff64670da3f75e7764e8f86ef534d2663
2024-10-10 18:19:16 +00:00
..
locktime feat: Create relative lock times at compile time 2024-09-28 18:29:15 +02:00
amount.rs Add checked weight division to Amount 2024-10-09 09:30:09 -05:00
block.rs Add missing links 2024-07-08 08:53:13 +01:00
fee_rate.rs Add assertions to checked_weight_mul test 2024-09-30 19:05:18 -05:00
lib.rs Remove or fix unused variables and methods in docs 2024-09-18 16:37:47 +01:00
parse.rs Fix rustdoc grammar 2024-07-08 08:52:15 +01:00
weight.rs 2024-09-01 automated rustfmt nightly 2024-09-01 01:22:04 +00:00