rust-bitcoin-unsafe-fast/bitcoin/src/blockdata
Andrew Poelstra ad40e69a85
Merge rust-bitcoin/rust-bitcoin#4626: Saturate iwp constructors to u32 max
3355400d67 docs: document IWP function return limit and panic case (yancy)
8559a49e03 Do not bound Arbitrary parameters passed to InputWeightPrediction (yancy)
e4c3d1e7a6 Use saturating add in IWP constructors (yancy)
8552534b61 Use u32 for struct and member variables in IWP, saturating to u32::MAX (yancy)

Pull request description:

  Use u32 for struct and member variables in InputWeightPrediction (saturating to u32::MAX).  To avoid panics during construction and while using auxiliary methods such as `total_size()`, support saturating operations.
  
  closes: https://github.com/rust-bitcoin/rust-bitcoin/issues/4547


ACKs for top commit:
  apoelstra:
    ACK 3355400d6706ce8fee3daa258e9dbbd648a87dca; successfully ran local tests; looks great!
  tcharding:
    ACK 3355400d67


Tree-SHA512: 8e4af86914152b4c159749ba71f1a2a45682b7c16ba7b35a0c4fd4e8c7c162d3999f4280dffd71b231c7e24f0b4a18907465bd99d8ef958fb7bc81f519059f63
2025-06-28 20:55:14 +00:00
..
script Make FeeRate from sat constructors infallible 2025-06-16 09:56:42 +10:00
block.rs Run the formatter 2025-05-08 10:16:56 +10:00
constants.rs Remove usage of hex::test_hex_unwrap 2025-04-11 06:49:06 +10:00
mod.rs Shorten locktime type term 2025-05-12 12:30:53 +10:00
opcodes.rs Add backticks around OPCodes 2025-06-07 12:10:24 -05:00
transaction.rs Merge rust-bitcoin/rust-bitcoin#4626: Saturate iwp constructors to u32 max 2025-06-28 20:55:14 +00:00
witness.rs 2025-04-27 automated rustfmt nightly 2025-04-27 01:36:56 +00:00