-
Notifications
You must be signed in to change notification settings - Fork 493
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
Rework channel_reestablish
requirements
#1051
Open
t-bast
wants to merge
3
commits into
lightning:master
Choose a base branch
from
t-bast:clarify-channel-reestablish-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit only contains cosmetic whitespace changes: statements weren't consistently aligned. I harmonized them as I find that it helps readability, especially with complex nested conditions.
It's hard to follow when requirements are scattered in too many sections.
Rework the `channel_reestablish` receiver requirements: we first handle all error cases, then specify what should be retransmitted.
28 tasks
28 tasks
26 tasks
26 tasks
25 tasks
26 tasks
28 tasks
26 tasks
28 tasks
28 tasks
29 tasks
28 tasks
30 tasks
27 tasks
25 tasks
23 tasks
24 tasks
24 tasks
22 tasks
20 tasks
20 tasks
20 tasks
20 tasks
21 tasks
19 tasks
22 tasks
21 tasks
21 tasks
21 tasks
21 tasks
22 tasks
25 tasks
23 tasks
23 tasks
22 tasks
23 tasks
22 tasks
23 tasks
21 tasks
20 tasks
20 tasks
20 tasks
19 tasks
19 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an alternative to #1049 which changes the requirements more in-depth. I recommend reviewing it commit-by-commit and using a markdown viewer.
I started from our code and rewrote the requirements based on that. I'm trying to more clearly express the fact that the only possible errors cases are:
error
and wait for them to force-close (unless the node operator steps in to manually force close)channel_reestablish
, we should wait for them to either send anerror
(if they want us to force-close), or reconnect and send a differentchannel_reestablish
(if they've fixed their state backup)This is harder to express in spec than in code, I may have gotten it wrong or missed a case, so please spend some time carefully reviewing this!
This should close #934 once and for all 🎉