Skip to content

Commit 0cd3be9

Browse files
Ack monitor event when inbound edge is closed
No test coverage
1 parent a01caca commit 0cd3be9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7867,11 +7867,15 @@ impl<
78677867
continue;
78687868
}
78697869
},
7870-
HTLCForwardInfo::FailHTLC { .. } | HTLCForwardInfo::FailMalformedHTLC { .. } => {
7870+
HTLCForwardInfo::FailHTLC { monitor_event_id, .. }
7871+
| HTLCForwardInfo::FailMalformedHTLC { monitor_event_id, .. } => {
78717872
// Channel went away before we could fail it. This implies
78727873
// the channel is now on chain and our counterparty is
78737874
// trying to broadcast the HTLC-Timeout, but that's their
78747875
// problem, not ours.
7876+
if let Some((event_id, channel_id)) = monitor_event_id {
7877+
self.chain_monitor.ack_monitor_event(channel_id, event_id);
7878+
}
78757879
},
78767880
}
78777881
}

0 commit comments

Comments
 (0)