From 8cf1dc39b59cc6a6e98fdd50029e1b721536b66d Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 26 May 2025 15:30:54 +1000 Subject: [PATCH] Fix incorrect code comment --- bitcoin/src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 4fcff528c..fc88001b1 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -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::().unwrap(); let expected_effective_value = (value.to_signed() - expected_fee).unwrap(); assert_eq!(effective_value, expected_effective_value);