We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01caca commit 0cd3be9Copy full SHA for 0cd3be9
1 file changed
lightning/src/ln/channelmanager.rs
@@ -7867,11 +7867,15 @@ impl<
7867
continue;
7868
}
7869
},
7870
- HTLCForwardInfo::FailHTLC { .. } | HTLCForwardInfo::FailMalformedHTLC { .. } => {
+ HTLCForwardInfo::FailHTLC { monitor_event_id, .. }
7871
+ | HTLCForwardInfo::FailMalformedHTLC { monitor_event_id, .. } => {
7872
// Channel went away before we could fail it. This implies
7873
// the channel is now on chain and our counterparty is
7874
// trying to broadcast the HTLC-Timeout, but that's their
7875
// 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
+ }
7879
7880
7881
0 commit comments