Struct bdk::wallet::coin_selection::LargestFirstCoinSelection
source · [−]pub struct LargestFirstCoinSelection;
Expand description
Simple and dumb coin selection
This coin selection algorithm sorts the available UTXOs by value and then picks them starting from the largest ones until the required amount is reached.
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LargestFirstCoinSelection
impl Send for LargestFirstCoinSelection
impl Sync for LargestFirstCoinSelection
impl Unpin for LargestFirstCoinSelection
impl UnwindSafe for LargestFirstCoinSelection
Blanket Implementations
Mutably borrows from an owned value. Read more