Skip to content

Commit 4db25af

Browse files
committed
Add second TODO when claiming to mirror the existing TODO on claim fail
1 parent eceedaf commit 4db25af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4426,6 +4426,10 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
44264426
match self.chain_monitor.update_channel(chan.get().get_funding_txo().unwrap(), monitor_update) {
44274427
ChannelMonitorUpdateStatus::Completed => {},
44284428
e => {
4429+
// TODO: This needs to be handled somehow - if we receive a monitor update
4430+
// with a preimage we *must* somehow manage to propagate it to the upstream
4431+
// channel, or we must have an ability to receive the same update and try
4432+
// again on restart.
44294433
log_given_level!(self.logger, if e == ChannelMonitorUpdateStatus::PermanentFailure { Level::Error } else { Level::Info },
44304434
"Failed to update channel monitor with preimage {:?} immediately prior to force-close: {:?}",
44314435
payment_preimage, e);

0 commit comments

Comments
 (0)