Skip to content

Commit affd295

Browse files
committed
[wip]: return trampoline forwards from outbound_htlc_forwards
1 parent b61b8ea commit affd295

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lightning/src/ln/channel.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8091,14 +8091,18 @@ where
80918091
let holding_cell_outbounds =
80928092
self.context.holding_cell_htlc_updates.iter().filter_map(|htlc| match htlc {
80938093
HTLCUpdateAwaitingACK::AddHTLC { source, payment_hash, .. } => match source {
8094-
HTLCSource::PreviousHopData(_) => Some((*payment_hash, source.clone())),
8094+
HTLCSource::PreviousHopData(_) | HTLCSource::TrampolineForward { .. } => {
8095+
Some((*payment_hash, source.clone()))
8096+
},
80958097
_ => None,
80968098
},
80978099
_ => None,
80988100
});
80998101
let committed_outbounds =
81008102
self.context.pending_outbound_htlcs.iter().filter_map(|htlc| match &htlc.source {
8101-
HTLCSource::PreviousHopData(_) => Some((htlc.payment_hash, htlc.source.clone())),
8103+
HTLCSource::PreviousHopData(_) | HTLCSource::TrampolineForward { .. } => {
8104+
Some((htlc.payment_hash, htlc.source.clone()))
8105+
},
81028106
_ => None,
81038107
});
81048108
holding_cell_outbounds.chain(committed_outbounds)

0 commit comments

Comments
 (0)