@@ -120,8 +120,8 @@ fn test_insane_channel_opens() {
120
120
fn do_test_counterparty_no_reserve ( send_from_initiator : bool ) {
121
121
// A peer providing a channel_reserve_satoshis of 0 (or less than our dust limit) is insecure,
122
122
// 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.
125
125
let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
126
126
let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
127
127
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) {
166
166
// Note that for outbound channels we have to consider the commitment tx fee and the
167
167
// "fee spike buffer", which is currently a multiple of the total commitment tx fee as
168
168
// 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 ) ) ;
170
170
} else {
171
171
send_payment ( & nodes[ 1 ] , & [ & nodes[ 0 ] ] , push_amt) ;
172
172
}
0 commit comments