Describe the enhancement
Add a way to create transactions with bdk::Wallet that only spend confirmed UTXOs.
This could easily be done by adding a corresponding must_only_use_confirmed_tx field to TxParams and ORing it into
https://github.com/bitcoindevkit/bdk/blob/81c76133911b3a99a4e1303052f96c858ca65cf5/crates/bdk/src/wallet/mod.rs#L1473
However, TxParams is currently pending exposure:
https://github.com/bitcoindevkit/bdk/blob/81c76133911b3a99a4e1303052f96c858ca65cf5/crates/bdk/src/wallet/tx_builder.rs#L129
Use case
This is needed to use BDK's coin selection for bumping transactions generated by LDK, in particular for https://docs.rs/lightning/0.0.116-alpha1/lightning/events/bump_transaction/trait.CoinSelectionSource.html#tymethod.select_confirmed_utxos
Describe the enhancement
Add a way to create transactions with
bdk::Walletthat only spend confirmed UTXOs.This could easily be done by adding a corresponding
must_only_use_confirmed_txfield toTxParamsand ORing it intohttps://github.com/bitcoindevkit/bdk/blob/81c76133911b3a99a4e1303052f96c858ca65cf5/crates/bdk/src/wallet/mod.rs#L1473
However,
TxParamsis currently pending exposure:https://github.com/bitcoindevkit/bdk/blob/81c76133911b3a99a4e1303052f96c858ca65cf5/crates/bdk/src/wallet/tx_builder.rs#L129
Use case
This is needed to use BDK's coin selection for bumping transactions generated by LDK, in particular for https://docs.rs/lightning/0.0.116-alpha1/lightning/events/bump_transaction/trait.CoinSelectionSource.html#tymethod.select_confirmed_utxos