Kill mutant in checked_mul_by_fee_rate

Use `checked_mul_by_fee_rate` in existing test to kill the mutant.
This commit is contained in:
Jamil Lambert, PhD 2025-02-13 18:05:03 +00:00
parent 44df39e72c
commit 854a4cf511
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ mod tests {
let weight = Weight::from_wu(381);
let fee_rate = FeeRate::from_sat_per_kwu(864);
let fee = fee_rate.checked_mul_by_weight(weight).unwrap();
let fee = weight.checked_mul_by_fee_rate(fee_rate).unwrap();
// 381 * 0.864 yields 329.18.
// The result is then rounded up to 330.
assert_eq!(fee, Amount::from_sat_unchecked(330));