Skip to content

Error message deserialization/handling #104

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

Closed
TheBlueMatt opened this issue Jul 31, 2018 · 5 comments
Closed

Error message deserialization/handling #104

TheBlueMatt opened this issue Jul 31, 2018 · 5 comments
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

We currently drop all error messages, which we (a) shouldn't do (we need to log them) and (b) shouldn't do (need to close the channel referenced in the error message).

@ariard
Copy link

ariard commented Jul 31, 2018

For b) you think about all the HandleError with action: None ?
After #91 I think it should be easy to have macro wrapper to log + return.

@TheBlueMatt
Copy link
Collaborator Author

Hmm? for (a) indeed we just need #91 and to log, for (b) we need to pass the message into the ChannelManager and force_close the channel.

@ariard
Copy link

ariard commented Jul 31, 2018

You speak about all the HandleError { msg: "Error", action : None } in channel functions post FundingSent ? If so you need a concept of internal error if it's up to ChannelManager to force_close the channel and I'm afraid that block a general scheme for errors we are talking about in #99 . (but maybe i anticipate too much here)

@TheBlueMatt
Copy link
Collaborator Author

I think we're talking about different things here - I'm referring to receiving an Error message on the wire (message type 17) and noting that we need to do two things with it - log it (blocked on #91) and pass the message into the ChannelManager so that it can close the channel. This is wholly separate (I'd think?) from the HandleError/ErrorAction/Event API mess.

@TheBlueMatt TheBlueMatt added this to the 0.1 milestone Aug 30, 2018
@TheBlueMatt
Copy link
Collaborator Author

This was resolved in #131. We also handle Errors we send outbound, but thats #109.

carlaKC pushed a commit to carlaKC/rust-lightning that referenced this issue Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants