Skip to content

Commit c3fc669

Browse files
committed
Add second TODO when claiming to mirror the existing TODO on claim fail
1 parent 2c03b47 commit c3fc669

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
@@ -4425,6 +4425,10 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
44254425
match self.chain_monitor.update_channel(chan.get().get_funding_txo().unwrap(), monitor_update) {
44264426
ChannelMonitorUpdateStatus::Completed => {},
44274427
e => {
4428+
// TODO: This needs to be handled somehow - if we receive a monitor update
4429+
// with a preimage we *must* somehow manage to propagate it to the upstream
4430+
// channel, or we must have an ability to receive the same update and try
4431+
// again on restart.
44284432
log_given_level!(self.logger, if e == ChannelMonitorUpdateStatus::PermanentFailure { Level::Error } else { Level::Info },
44294433
"Failed to update channel monitor with preimage {:?} immediately prior to force-close: {:?}",
44304434
payment_preimage, e);

0 commit comments

Comments
 (0)