Skip to content

Commit af158d3

Browse files
committed
f Standardize formatting of local branch for htlc fees
1 parent 4afcf60 commit af158d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,12 @@ impl InboundHTLCOutput {
292292
let (htlc_success_tx_fee_sat, htlc_timeout_tx_fee_sat) =
293293
second_stage_tx_fees_sat(features, feerate_per_kw);
294294

295-
let htlc_tx_fee_sat =
296-
if !local { htlc_timeout_tx_fee_sat } else { htlc_success_tx_fee_sat };
295+
let htlc_tx_fee_sat = if !local {
296+
// This is an offered HTLC.
297+
htlc_timeout_tx_fee_sat
298+
} else {
299+
htlc_success_tx_fee_sat
300+
};
297301
self.amount_msat / 1000 < broadcaster_dust_limit_sat + htlc_tx_fee_sat
298302
}
299303
}

0 commit comments

Comments
 (0)