Fix incorrect code comment

This commit is contained in:
Tobin C. Harding 2025-05-26 15:30:54 +10:00
parent 7c186e6081
commit 8cf1dc39b5
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 1 additions and 1 deletions

View File

@ -1690,7 +1690,7 @@ mod tests {
let fee_rate = FeeRate::from_sat_per_kwu(10).unwrap();
let effective_value = effective_value(fee_rate, InputWeightPrediction::P2WPKH_MAX, value);
// 10 sat/kwu * 272 wu = 4 sats (rounding up)
// 10 sat/kwu * 272 wu = 3 sats (rounding up)
let expected_fee = "3 sats".parse::<SignedAmount>().unwrap();
let expected_effective_value = (value.to_signed() - expected_fee).unwrap();
assert_eq!(effective_value, expected_effective_value);