Skip to content

Commit 96ab759

Browse files
committed
Mention lnd's SCB feature in the corresponding error message
It's a bit confusing when we see only "Peer sent a garbage channel_reestablish" when a peer uses lnd's SCB feature to ask us to broadcast the latest state. This updates the error message to be a bit clearer.
1 parent e94647c commit 96ab759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4092,7 +4092,7 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
40924092

40934093
if msg.next_local_commitment_number >= INITIAL_COMMITMENT_NUMBER || msg.next_remote_commitment_number >= INITIAL_COMMITMENT_NUMBER ||
40944094
msg.next_local_commitment_number == 0 {
4095-
return Err(ChannelError::Close("Peer sent a garbage channel_reestablish".to_owned()));
4095+
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()));
40964096
}
40974097

40984098
if msg.next_remote_commitment_number > 0 {

0 commit comments

Comments
 (0)