We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4afcf60 commit af158d3Copy full SHA for af158d3
lightning/src/ln/channel.rs
@@ -292,8 +292,12 @@ impl InboundHTLCOutput {
292
let (htlc_success_tx_fee_sat, htlc_timeout_tx_fee_sat) =
293
second_stage_tx_fees_sat(features, feerate_per_kw);
294
295
- let htlc_tx_fee_sat =
296
- if !local { htlc_timeout_tx_fee_sat } else { htlc_success_tx_fee_sat };
+ let htlc_tx_fee_sat = if !local {
+ // This is an offered HTLC.
297
+ htlc_timeout_tx_fee_sat
298
+ } else {
299
+ htlc_success_tx_fee_sat
300
+ };
301
self.amount_msat / 1000 < broadcaster_dust_limit_sat + htlc_tx_fee_sat
302
}
303
0 commit comments