-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Channel closed because WIRE_CHANNEL_REESTABLISH is an unknown message? #3608
Comments
Strange that message seems to originate here: Lines 1697 to 1725 in f8a21f1
Which is strange since that message is expected only while in the following loop: Lines 2123 to 2129 in f8a21f1
So it seems like we exited the loop prematurely, or the peer sent that message twice. |
@btcontract is there a chance BLW could have sent the message twice? |
Don't see how that is possible, any chance checking if that did happen in Cl logs? |
If the log-level was set to |
NARRATOR: It wasn't. |
I just had this happen on C-Lightning 0.9.0-1. A private channel that was opened by a peer (so, maybe a mobile wallet) was unilaterally closed by my node after an error "Peer sent unknown message 136 (WIRE_CHANNEL_REESTABLISH)." According to C-Lightning's debug log, the peer did send
The "Bad file descriptor" error (on the second log line above) suggests a bug in C-Lightning, but I think that's unrelated. A clue might be that the peer connected once (and perhaps internally enqueued a It certainly looks like a bug in the peer's software (no idea if it's BLW or something else), but why is C-Lightning so vicious in its response to a repeated message that is logically idempotent? Whatever happened to Jon Postel's robustness principle: "be conservative in what you do; be liberal in what you accept from others"? |
Fixes: ElementsProject#3608 Changelog-Changed: protocol: Ignore (and log as "unusual") repeated `WIRE_CHANNEL_REESTABLISH` messages, to be compatible with buggy peer software that sometimes does this.
Fixes: #3608 Changelog-Changed: protocol: Ignore (and log as "unusual") repeated `WIRE_CHANNEL_REESTABLISH` messages, to be compatible with buggy peer software that sometimes does this.
Issue
My BLW had a channel open to my c-lightning node, and amidst many connection and connection losses suddenly this log entry appeared:
03da3b917a178f46472f55ba2dfc192431286d562200a95e9e6479126e94bc30bd-chan#10877: Peer permanent failure in CHANNELD_NORMAL: channeld: sent ERROR Peer sent unknown message 136 (WIRE_CHANNEL_REESTABLISH)
Then the channel was closed.
Here's the message on BLW screen (as received from lightningd):
getinfo
outputThe text was updated successfully, but these errors were encountered: