Skip to content

Commit 6976ab8

Browse files
committed
f add a bit more color on why certain things are post-shutdown
1 parent 8d70cc3 commit 6976ab8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/chain/channelmonitor.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3237,6 +3237,10 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
32373237
|ChannelMonitorUpdateStep::ShutdownScript { .. }
32383238
|ChannelMonitorUpdateStep::CommitmentSecret { .. } =>
32393239
is_pre_close_update = true,
3240+
// After a channel is closed, we don't communicate with our peer about it, so the
3241+
// only things we will update is getting a new preimage (from a different channel)
3242+
// or being told that the channel is closed. All other updates are generated while
3243+
// talking to our peer.
32403244
ChannelMonitorUpdateStep::PaymentPreimage { .. } => {},
32413245
ChannelMonitorUpdateStep::ChannelForceClosed { .. } => {},
32423246
}

0 commit comments

Comments
 (0)