rust-lightning/lightning
Wilmer Paulino bc39da678e
Provide a default CoinSelectionSource implementation via a new trait
Certain users may not care how their UTXOs are selected, or their wallet
may not expose enough controls to fully implement the
`CoinSelectionSource` trait. As an alternative, we introduce another
trait `WalletSource` they could opt to implement instead, which is much
simpler as it just returns the set of confirmed UTXOs that may be used.
This trait implementation is then consumed into a wrapper `Wallet` which
implements the `CoinSelectionSource` trait using a "smallest
above-dust-after-spend first" coin selection algorithm.
2023-06-19 14:05:46 -07:00
..
src Provide a default CoinSelectionSource implementation via a new trait 2023-06-19 14:05:46 -07:00
Cargo.toml Replace std's unmaintained bench with criterion 2023-05-11 06:11:49 +00:00