You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let table_htlc = get_htlc_in_commitment!($htlc, $outbound == local);
4621
+
let included_htlc = get_included_htlc!($htlc, $outbound == local, $is_dust);
4622
+
htlc_source_table.push((table_htlc, $source));
4623
+
htlcs_included.push(included_htlc);
4600
4624
}
4601
4625
}
4602
4626
@@ -4606,7 +4630,8 @@ where
4606
4630
for htlc in self.pending_inbound_htlcs.iter() {
4607
4631
if htlc.state.included_in_commitment(generated_by_local) {
4608
4632
log_trace!(logger, " ...including inbound {} HTLC {} (hash {}) with value {}", htlc.state, htlc.htlc_id, htlc.payment_hash, htlc.amount_msat);
4609
-
add_htlc_output!(htlc, false, None);
4633
+
let is_dust = htlc.is_dust(local, feerate_per_kw, broadcaster_dust_limit_sat, funding.get_channel_type());
4634
+
add_htlc_output!(htlc, false, None, is_dust);
4610
4635
} else {
4611
4636
log_trace!(logger, " ...not including inbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, htlc.payment_hash, htlc.amount_msat, htlc.state);
4612
4637
if let Some(preimage) = htlc.state.preimage() {
@@ -4622,7 +4647,8 @@ where
4622
4647
}
4623
4648
if htlc.state.included_in_commitment(generated_by_local) {
4624
4649
log_trace!(logger, " ...including outbound {} HTLC {} (hash {}) with value {}", htlc.state, htlc.htlc_id, htlc.payment_hash, htlc.amount_msat);
4625
-
add_htlc_output!(htlc, true, Some(&htlc.source));
4650
+
let is_dust = htlc.is_dust(local, feerate_per_kw, broadcaster_dust_limit_sat, funding.get_channel_type());
log_trace!(logger, " ...not including outbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, htlc.payment_hash, htlc.amount_msat, htlc.state);
0 commit comments