We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e39b04 commit 3081144Copy full SHA for 3081144
lightning/src/ln/functional_tests.rs
@@ -610,7 +610,7 @@ fn test_update_fee_that_funder_cannot_afford() {
610
611
//We made sure neither party's funds are below the dust limit and there are no HTLCs here
612
assert_eq!(commitment_tx.output.len(), 2);
613
- let total_fee: u64 = feerate as u64 * COMMITMENT_TX_BASE_WEIGHT / 1000;
+ let total_fee: u64 = commit_tx_fee_msat(feerate, 0) / 1000;
614
let mut actual_fee = commitment_tx.output.iter().fold(0, |acc, output| acc + output.value);
615
actual_fee = channel_value - actual_fee;
616
assert_eq!(total_fee, actual_fee);
0 commit comments