Send bogus ChannelReestablish for unknown channels
[rust-lightning] / lightning / src / ln / channel.rs
index a61a8de82debecd5906c0ee95bdcdb420aae48f4..2359d1ef0e3723bdf1ea28c62a2720fd6fd47bf2 100644 (file)
@@ -3992,7 +3992,7 @@ impl<SP: Deref> Channel<SP> where
 
                if msg.next_local_commitment_number >= INITIAL_COMMITMENT_NUMBER || msg.next_remote_commitment_number >= INITIAL_COMMITMENT_NUMBER ||
                        msg.next_local_commitment_number == 0 {
-                       return Err(ChannelError::Close("Peer sent a garbage channel_reestablish (usually an lnd node with lost state asking us to force-close for them)".to_owned()));
+                       return Err(ChannelError::Close("Peer sent an invalid channel_reestablish to force close in a non-standard way".to_owned()));
                }
 
                if msg.next_remote_commitment_number > 0 {