-
Notifications
You must be signed in to change notification settings - Fork 520
Explicit commit_sig retransmission for interactive-tx
#1289
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
Open
t-bast
wants to merge
1
commit into
lightning:master
Choose a base branch
from
t-bast:dual-funding-commit-sig-retransmit-flag
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #1160 the diff currently shows:
While this PR is showing
So the final goal is to have:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's exactly it! I'll rebase #1160 once this PR and #1236 have been merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we still decrementing the sent
next_commitment_numberwhen splice needs commitments sent?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For context, this is what we currently do when sending channel_reestablish:
When recieving channel_reestablish, we use this as the condition for when we resent the
commitment_siged:When we send (and need more info to build splice tx), do we:
When receiving, do we:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it appears we're dropping
your_last_funding_locked_txidentirely -- correct?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were using
your_last_funding_locked_txidto determine if we needed to resendsplice_locked. It looks like this new spec does not allow re-sending ofsplice_lockedat all. Is that correct?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No we're not, that has been deprecated in favor of this PR! So we're back to the simpler case where
next_commitment_numberreally is the next commitment number :)Yes, this has been removed entirely, as it's now unnecessary. You don't need to re-send
splice_lockedat all, it is "contained" inmy_current_funding_locked, which is simpler: you always send inmy_current_funding_lockedthe latest thing you've locked.I think your comment here is thus obsolete, the logic becomes much simpler now that we don't need to decrement the commitment number? You simply re-send
commitment_signedif your peer requests it in theretransmit_flagsyou receive. And you simply ask for retransmission in theretransmit_flagsyou send if you haven't received the remotecommit_sigyet for this interactive-tx.