Skip to content

Commit ebb88ce

Browse files
committed
f use helper
1 parent 022107d commit ebb88ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/functional_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ fn test_chan_init_feerate_unaffordability() {
15211521
// HTLC.
15221522
let feerate_per_kw = 253;
15231523
let mut push_amt = 100_000_000;
1524-
push_amt -= feerate_per_kw as u64 * (COMMITMENT_TX_BASE_WEIGHT + 4 * COMMITMENT_TX_WEIGHT_PER_HTLC) / 1000 * 1000;
1524+
push_amt -= commit_tx_fee_msat(feerate_per_kw, 4);
15251525
assert_eq!(nodes[0].node.create_channel(nodes[1].node.get_our_node_id(), 100_000, push_amt + 1, 42, None).unwrap_err(),
15261526
APIError::APIMisuseError { err: "Funding amount (356) can't even pay fee for initial commitment transaction fee of 357.".to_string() });
15271527

0 commit comments

Comments
 (0)