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<D: Database> CoinSelectionAlgorithm<D> for BranchAndBoundCoinSelection
impl<D: Database> CoinSelectionAlgorithm<D> for BranchAndBoundCoinSelection
source§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>
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
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more