Closed yancyribbens closed 7 months ago
In case consumers don't need a Vec, an iterator type can be returned, then collected() for the cases where a vec is needed.
Change return type pf select_coins_srd(), select_coins() and select_coins_bnb() to:
select_coins_srd()
select_coins()
select_coins_bnb()
-> Option<impl Iterator<Item=&'a WeightedUtxo>>
This should ideally be done at the same time.
closed by: https://github.com/p2pderivatives/rust-bitcoin-coin-selection/pull/30
closed by https://github.com/p2pderivatives/rust-bitcoin-coin-selection/pull/30
In case consumers don't need a Vec, an iterator type can be returned, then collected() for the cases where a vec is needed.
Change return type pf
select_coins_srd()
,select_coins()
andselect_coins_bnb()
to:This should ideally be done at the same time.