Skip to content

Commit 8b31202

Browse files
committed
f use helper
1 parent 1121b09 commit 8b31202

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
@@ -1514,7 +1514,7 @@ fn test_chan_init_feerate_unaffordability() {
15141514
// HTLC.
15151515
let feerate_per_kw = 253;
15161516
let mut push_amt = 100_000_000;
1517-
push_amt -= feerate_per_kw as u64 * (COMMITMENT_TX_BASE_WEIGHT + 4 * COMMITMENT_TX_WEIGHT_PER_HTLC) / 1000 * 1000;
1517+
push_amt -= commit_tx_fee_msat(feerate_per_kw, 4);
15181518
assert_eq!(nodes[0].node.create_channel(nodes[1].node.get_our_node_id(), 100_000, push_amt + 1, 42, None).unwrap_err(),
15191519
APIError::APIMisuseError { err: "Funding amount (356) can't even pay fee for initial commitment transaction fee of 357.".to_string() });
15201520

0 commit comments

Comments
 (0)