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
sourceimpl<D: Database> CoinSelectionAlgorithm<D> for BranchAndBoundCoinSelection
impl<D: Database> CoinSelectionAlgorithm<D> for BranchAndBoundCoinSelection
sourcefn coin_select(
&self,
_database: &D,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script
) -> Result<CoinSelectionResult, Error>
fn coin_select(
&self,
_database: &D,
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
sourceimpl Debug for BranchAndBoundCoinSelection
impl Debug for BranchAndBoundCoinSelection
Auto Trait Implementations
impl RefUnwindSafe for BranchAndBoundCoinSelection
impl Send for BranchAndBoundCoinSelection
impl Sync for BranchAndBoundCoinSelection
impl Unpin for BranchAndBoundCoinSelection
impl UnwindSafe for BranchAndBoundCoinSelection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more