rust-bitcoin-unsafe-fast/fuzz/fuzz_targets/bitcoin
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
..
deser_net_msg.rs Rename the network module to p2p 2023-08-01 16:36:12 +10:00
deserialize_address.rs Change T::from_str(s) to s.parse::<T>() in tests 2024-08-28 16:13:03 +01:00
deserialize_block.rs Move Block to primitives 2024-11-15 07:16:21 +11:00
deserialize_prefilled_transaction.rs fuzz: disable tests unless 'cfg(fuzzing)' is passed; update README for reproducing failures 2023-04-27 00:24:53 +00:00
deserialize_psbt.rs 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
deserialize_script.rs Make FeeRate from sat constructors infallible 2025-06-16 09:56:42 +10:00
deserialize_transaction.rs Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
deserialize_witness.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
outpoint_string.rs Change T::from_str(s) to s.parse::<T>() in tests 2024-08-28 16:13:03 +01:00
p2p_address_roundtrip.rs fix(p2p): remove `AddrV2` <> `SocketAddr` conversions 2025-05-27 10:32:23 -03:00
script_bytes_to_asm_fmt.rs Replace impl blocks with extension traits 2024-08-13 13:14:00 +02:00