Skip to content

Commit c165359

Browse files
committed
f nits/sp
1 parent 44dc1be commit c165359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ fn test_insane_channel_opens() {
120120
fn do_test_counterparty_no_reserve(send_from_initiator: bool) {
121121
// A peer providing a channel_reserve_satoshis of 0 (or less than our dust limit) is insecure,
122122
// but only for them. Because some LSPs do it with some level of trust of the clients (for a
123-
// substantial UX improvement), we explicitly allow it. Because its unlikely to happen often in
124-
// normal testing, we test it explicitly here.
123+
// substantial UX improvement), we explicitly allow it. Because it's unlikely to happen often
124+
// in normal testing, we test it explicitly here.
125125
let chanmon_cfgs = create_chanmon_cfgs(2);
126126
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
127127
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
@@ -166,7 +166,7 @@ fn do_test_counterparty_no_reserve(send_from_initiator: bool) {
166166
// Note that for outbound channels we have to consider the commitment tx fee and the
167167
// "fee spike buffer", which is currently a multiple of the total commitment tx fee as
168168
// well as an additional HTLC.
169-
- FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE * feerate_per_kw * (COMMITMENT_TX_BASE_WEIGHT + 2 * COMMITMENT_TX_WEIGHT_PER_HTLC) / 1000 * 1000);
169+
- FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE * commit_tx_fee_msat(feerate_per_kw, 2));
170170
} else {
171171
send_payment(&nodes[1], &[&nodes[0]], push_amt);
172172
}

0 commit comments

Comments
 (0)