From 616d3ac78450b0aad1f0ad54887ec8317335c205 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 6 Dec 2022 21:19:29 +0000 Subject: [PATCH] Add second TODO when claiming to mirror the existing TODO on claim fail --- lightning/src/ln/channelmanager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index d20569df0..0d09ead3a 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -4425,6 +4425,10 @@ impl ChannelManager {}, e => { + // TODO: This needs to be handled somehow - if we receive a monitor update + // with a preimage we *must* somehow manage to propagate it to the upstream + // channel, or we must have an ability to receive the same update and try + // again on restart. log_given_level!(self.logger, if e == ChannelMonitorUpdateStatus::PermanentFailure { Level::Error } else { Level::Info }, "Failed to update channel monitor with preimage {:?} immediately prior to force-close: {:?}", payment_preimage, e); -- 2.39.5