Skip to content

Commit 7f78fc4

Browse files
committed
Add channel monitor recovery for trampoline forwards
Implement channel monitor recovery for trampoline forwards iterating over all hop data and updating pending forwards.
1 parent a56f00c commit 7f78fc4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16677,7 +16677,20 @@ where
1667716677
monitor.channel_id(),
1667816678
);
1667916679
},
16680-
HTLCSource::TrampolineForward { .. } => todo!(),
16680+
HTLCSource::TrampolineForward { previous_hop_data, .. } => {
16681+
for current_previous_hop_data in previous_hop_data {
16682+
channel_monitor_recovery_internal(
16683+
&mut forward_htlcs,
16684+
&mut pending_events_read,
16685+
&mut pending_intercepted_htlcs,
16686+
&mut decode_update_add_htlcs,
16687+
current_previous_hop_data,
16688+
&logger,
16689+
htlc.payment_hash,
16690+
monitor.channel_id(),
16691+
);
16692+
}
16693+
},
1668116694
HTLCSource::OutboundRoute {
1668216695
payment_id,
1668316696
session_priv,

0 commit comments

Comments
 (0)