Skip to content

Commit 3081144

Browse files
committed
f use helper
1 parent 8e39b04 commit 3081144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ fn test_update_fee_that_funder_cannot_afford() {
610610

611611
//We made sure neither party's funds are below the dust limit and there are no HTLCs here
612612
assert_eq!(commitment_tx.output.len(), 2);
613-
let total_fee: u64 = feerate as u64 * COMMITMENT_TX_BASE_WEIGHT / 1000;
613+
let total_fee: u64 = commit_tx_fee_msat(feerate, 0) / 1000;
614614
let mut actual_fee = commitment_tx.output.iter().fold(0, |acc, output| acc + output.value);
615615
actual_fee = channel_value - actual_fee;
616616
assert_eq!(total_fee, actual_fee);

0 commit comments

Comments
 (0)