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);
4616
+
let included_htlc = get_included_htlc!($htlc, $outbound == local, $is_dust);
4617
+
htlc_source_table.push((table_htlc, $source));
4618
+
htlcs_included.push(included_htlc);
4595
4619
}
4596
4620
}
4597
4621
@@ -4601,7 +4625,8 @@ where
4601
4625
for htlc in self.pending_inbound_htlcs.iter() {
4602
4626
if htlc.state.included_in_commitment(generated_by_local) {
4603
4627
log_trace!(logger, " ...including inbound {} HTLC {} (hash {}) with value {}", htlc.state, htlc.htlc_id, htlc.payment_hash, htlc.amount_msat);
4604
-
add_htlc_output!(htlc, false, None);
4628
+
let is_dust = htlc.is_dust(local, feerate_per_kw, broadcaster_dust_limit_sat, funding.get_channel_type());
4629
+
add_htlc_output!(htlc, false, None, is_dust);
4605
4630
} else {
4606
4631
log_trace!(logger, " ...not including inbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, htlc.payment_hash, htlc.amount_msat, htlc.state);
4607
4632
if let Some(preimage) = htlc.state.preimage() {
@@ -4617,7 +4642,8 @@ where
4617
4642
}
4618
4643
if htlc.state.included_in_commitment(generated_by_local) {
4619
4644
log_trace!(logger, " ...including outbound {} HTLC {} (hash {}) with value {}", htlc.state, htlc.htlc_id, htlc.payment_hash, htlc.amount_msat);
4620
-
add_htlc_output!(htlc, true, Some(&htlc.source));
4645
+
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