rust-bitcoin-unsafe-fast/bitcoin
Andrew Poelstra 1451370660
Merge rust-bitcoin/rust-bitcoin#1642: Add `minimal_non_dust` to `TxOut`
6be89bf94f Add `minimal_non_dust` to `TxOut` (Martin Habovstiak)

Pull request description:

  In some scenarios it's useful to create outputs with minimal relayable value. E.g. outputs designated for fee bumping using CPFP. A method for this is useful.

  This implements a constructor of `TxOut` that computes the minimal non-dust value from the passed script.

  Closes #1459

  This one is quite easy, so if we could get it in 0.30, that'd be great.

ACKs for top commit:
  apoelstra:
    ACK 6be89bf94f
  tcharding:
    ACK 6be89bf94f

Tree-SHA512: f31ae5f649fbba95ccaabf465cb814df193e7ef89c6e0de7b316a2a484e172beada0da8851da96b195a69a4da1b0991741d4c119f9b0c94fff34150e4f033bd5
2023-02-13 20:53:04 +00:00
..
contrib Improve test coverage for docs build 2023-01-16 13:56:56 +11:00
embedded Instruct devs to use nightly for embedded 2023-02-03 08:44:47 +11:00
examples Remove FromHex for all types except Vec and array 2023-02-01 08:26:46 +11:00
fuzz Add `Weight` and `FeeRate` newtypes 2023-02-08 23:17:30 +01:00
src Merge rust-bitcoin/rust-bitcoin#1642: Add `minimal_non_dust` to `TxOut` 2023-02-13 20:53:04 +00:00
tests Move hex data to tests/data 2023-02-10 11:53:02 +11:00
CHANGELOG.md add some documentation clarifying the locktime ordering shenanigans in #1330 2022-12-15 23:12:03 +00:00
Cargo.toml Fix docs.rs to use all features 2023-02-10 08:04:11 +11:00
build.rs Set rustv_1_53 in build script 2023-02-02 10:12:16 +11:00