Skip to content

Commit

Permalink
fixed clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
chippsmith committed Jul 5, 2024
1 parent 4ebff2c commit c2bd73c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,8 @@ fn calculate_waste(
let mut waste: u64 = 0;

if let Some(long_term_feerate) = options.long_term_feerate {
waste += (estimated_fee as f32
- selected_inputs.len() as f32 * long_term_feerate * accumulated_weight as f32)
.ceil() as u64;
waste +=
((estimated_fee as f32 - long_term_feerate) * accumulated_weight as f32).ceil() as u64;
}

if options.excess_strategy != ExcessStrategy::ToDrain {
Expand Down Expand Up @@ -704,7 +703,7 @@ mod test {
creation_sequence: None,
},
feerate: 1.0,
result: Ok(999_99_999_990),
result: Ok(99_999_999_990),
},
];

Expand Down

0 comments on commit c2bd73c

Please sign in to comment.