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§
source§impl Clone for BranchAndBoundCoinSelection
impl Clone for BranchAndBoundCoinSelection
source§fn clone(&self) -> BranchAndBoundCoinSelection
fn clone(&self) -> BranchAndBoundCoinSelection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CoinSelectionAlgorithm for BranchAndBoundCoinSelection
impl CoinSelectionAlgorithm for BranchAndBoundCoinSelection
source§fn coin_select(
&self,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script
) -> Result<CoinSelectionResult, Error>
fn coin_select(
&self,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script
) -> Result<CoinSelectionResult, Error>
Perform the coin selection Read more