Implement `checked_div_by_fee_rate_floor` and `checked_div_by_fee_rate_ceil` methods to compute the maximum and minimum transaction weights. These methods provide precise weight calculations using both floor and ceiling divisions. - Introduce `checked_div_by_fee_rate_floor` for floor-based weight division. - Add `checked_div_by_fee_rate_ceil` for ceiling-based weight division. - Update `ops::Div` implementation for `Amount` to use floor division by default. - Include unit tests to validate both floor and ceiling division methods. |
||
---|---|---|
.. | ||
contrib | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
README.md
Bitcoin Units
This crate provides basic Bitcoin numeric units such as Amount
.
Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on Rust 1.63.0.
Licensing
The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.