We now have both `Amount::from_sat_unchecked` and `SignedAmount::from_sat_unchecked`. These constructors are explicitly for ignoring any invariant (implied or otherwise) especially in test code. Note we do not enforce an invariant currently. This patch is a baby step towards getting the `amount` module in order. Replace all calls to `from_sat` for const int values with the `_unchecked` constructor. Done in `amount::tests` only. |
||
---|---|---|
.. | ||
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.