p2pderivatives / rust-bitcoin-coin-selection

10 stars 5 forks source link

Change all return types to iter #31

Closed yancyribbens closed 7 months ago

yancyribbens commented 8 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:

-> Option<impl Iterator<Item=&'a WeightedUtxo>> 

This should ideally be done at the same time.

yancyribbens commented 8 months ago

closed by: https://github.com/p2pderivatives/rust-bitcoin-coin-selection/pull/30

yancyribbens commented 7 months ago

closed by https://github.com/p2pderivatives/rust-bitcoin-coin-selection/pull/30