Skip to content

Commit 0149f8d

Browse files
committed
[wip]: return trampoline forwards from outbound_htlc_forwards
1 parent 9f53e04 commit 0149f8d

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
@@ -8079,14 +8079,18 @@ where
80798079
let holding_cell_outbounds =
80808080
self.context.holding_cell_htlc_updates.iter().filter_map(|htlc| match htlc {
80818081
HTLCUpdateAwaitingACK::AddHTLC { source, payment_hash, .. } => match source {
8082-
HTLCSource::PreviousHopData(_) => Some((*payment_hash, source.clone())),
8082+
HTLCSource::PreviousHopData(_) | HTLCSource::TrampolineForward { .. } => {
8083+
Some((*payment_hash, source.clone()))
8084+
},
80838085
_ => None,
80848086
},
80858087
_ => None,
80868088
});
80878089
let committed_outbounds =
80888090
self.context.pending_outbound_htlcs.iter().filter_map(|htlc| match &htlc.source {
8089-
HTLCSource::PreviousHopData(_) => Some((htlc.payment_hash, htlc.source.clone())),
8091+
HTLCSource::PreviousHopData(_) | HTLCSource::TrampolineForward { .. } => {
8092+
Some((htlc.payment_hash, htlc.source.clone()))
8093+
},
80908094
_ => None,
80918095
});
80928096
holding_cell_outbounds.chain(committed_outbounds)

0 commit comments

Comments
 (0)