rust-bitcoin-unsafe-fast/fuzz/fuzz_targets
Tobin C. Harding 0ff8d82193
Make FeeRate from sat constructors infallible
We now have constructors that take an arbitrary size fee
rate (`Amount`). The `from_sat_per_foo` constructors can be made
infallible by taking a `u32` instead of `u64`. This makes the API more
ergonomic but limits the fee rate to just under 42 BTC which is plenty.

Note we just delete the `from_sat_per_vb_u32` function because it is
unreleased, in the past we had `from_sat_per_vb_unchecked` so we could
put that back in if we wanted to be a bit more kind to downstream. Can
be done later, we likely want to go over the public API before release
and add a few things back in that we forgot to deprecate or could not
for some reason during dev.

Fuzz with a new function that consumes a `u32`.
2025-06-16 09:56:42 +10:00
..
bitcoin Make FeeRate from sat constructors infallible 2025-06-16 09:56:42 +10:00
hashes Remove the SliceIndex implementation from hash types 2024-10-02 10:18:45 +10:00
units Change T::from_str(s) to s.parse::<T>() in tests 2024-08-28 16:13:03 +01:00