Struct bdk::wallet::coin_selection::BranchAndBoundCoinSelection
source · [−]pub struct BranchAndBoundCoinSelection { /* private fields */ }
Expand description
Branch and bound coin selection
Code adapted from Bitcoin Core’s implementation and from Mark Erhardt Master’s Thesis: http://murch.one/wp-content/uploads/2016/11/erhardt2016coinselection.pdf
Implementations
Trait Implementations
fn coin_select(
&self,
_database: &D,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
amount_needed: u64,
fee_amount: u64
) -> Result<CoinSelectionResult, Error>
fn coin_select(
&self,
_database: &D,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
amount_needed: u64,
fee_amount: u64
) -> Result<CoinSelectionResult, Error>
Perform the coin selection Read more