Skip to content

Commit

Permalink
Update coin_selection.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity authored Feb 5, 2024
1 parent cf3b7ed commit dc76891
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wallet/coin_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ pub enum CoinSelectionError {
ExceededMaxCoins,
}

/// This is not the most efficient coin selection method.
/// It naively selects coins until an amount is reached.
/// This should be replaced with a more thorough algorithm later.
/// Uses the knapsack algorithm to select coins.
pub fn select_coins(
mut spendable_coins: Vec<Coin>,
amount: u128,
Expand Down

0 comments on commit dc76891

Please sign in to comment.