Skip to content

Commit 9bbb8db

Browse files
committed
f rephrase comment slightly - jeff
1 parent b0d46b1 commit 9bbb8db

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4173,11 +4173,10 @@ impl<Signer: Sign> Channel<Signer> {
41734173
/// Also returns the list of payment_hashes for channels which we can safely fail backwards
41744174
/// immediately (others we will have to allow to time out).
41754175
pub fn force_shutdown(&mut self, should_broadcast: bool) -> (Option<(OutPoint, ChannelMonitorUpdate)>, Vec<(HTLCSource, PaymentHash)>) {
4176-
// Note that we MUST NOT generate a monitor update which does anything but indicate
4177-
// force-closure - we're called during initialization prior to the chain_monitor in the
4178-
// encompassing ChannelManager being fully configured in some cases. Thus, its likely any
4179-
// monitor events we generate will be delayed in being processed!
4180-
// See the docs for `ChannelManagerReadArgs` for more.
4176+
// Note that we MUST only generate a monitor update which indicates force-closure - we're
4177+
// called during initialization prior to the chain_monitor in the encompassing ChannelManager
4178+
// being fully configured in some cases. Thus, its likely any monitor events we generate will
4179+
// be delayed in being processed! See the docs for `ChannelManagerReadArgs` for more.
41814180
assert!(self.channel_state != ChannelState::ShutdownComplete as u32);
41824181

41834182
// We go ahead and "free" any holding cell HTLCs or HTLCs we haven't yet committed to and

0 commit comments

Comments
 (0)