Skip to content

Commit b408d90

Browse files
committed
Add second TODO when claiming to mirror the existing TODO on claim fail
1 parent 15da970 commit b408d90

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

0 commit comments

Comments
 (0)