Skip to content

Commit

Permalink
Refactor SRD selection
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Oct 8, 2024
1 parent 49655c0 commit f46622a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/single_random_draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ pub fn select_coins_srd<'a, R: rand::Rng + ?Sized, Utxo: WeightedUtxo>(

for w_utxo in origin {
let utxo_value = w_utxo.value();
let effective_value = effective_value(fee_rate, w_utxo.satisfaction_weight(), utxo_value);
let utxo_weight = w_utxo.satisfaction_weight();
let effective_value = effective_value(fee_rate, utxo_weight, utxo_value);

if let Some(e) = effective_value {
if let Ok(v) = e.to_unsigned() {
Expand Down

0 comments on commit f46622a

Please sign in to comment.