select_coins

Function select_coins 

Source
pub fn select_coins(
    spendable_coins: Vec<Coin>,
    amount: u128,
) -> Result<Vec<Coin>, CoinSelectionError>
Expand description

Uses the knapsack algorithm to select coins.