Skip to content
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

BOLT2: both nodes send update_add_htlc #473

Merged
merged 1 commit into from Oct 29, 2018

Conversation

nayuta-ueno
Copy link
Contributor

issue #472

In this sequence, three commitment_signed and revoke_and_ack are required.

@TheBlueMatt
Copy link
Collaborator

This should not be the case. When B sends A a commitment_signed it should absolutely include any pending update_adds from B.

@nayuta-ueno
Copy link
Contributor Author

nayuta-ueno commented Sep 7, 2018

@TheBlueMatt

When B sends A a commitment_signed it should absolutely include any pending update_adds from B.

When B receive revoke_and_ack(7), B have signed commitment transaction HTLC1, 2 (HTLC3 has only applied).
Therefore 'A' need sends commitment_singed(8) like #472 .

Copy link
Collaborator

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nayuta-ueno is right, A acknowledges the incoming htlc (3) at step (7), only then will this hltlc be signed by A.

@nayuta-ueno
Copy link
Contributor Author

@pm47 Thank you for your review!
(I'm not @ ueno but @nayuta-ueno :)

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, oops, yes, you're right, I'd missed the direction of the last HTLC.

@rustyrussell
Copy link
Collaborator

You are correct, the example was unclear. Perhaps deliberately so, as below it says:

what matters is whether both sides have irrevocably committed to a
particular HTLC or not (the final state, above).

Which implies that it's deliberate that one side is committed to the HTLC and the other isn't? We should probably spell out the states at each point for each side, but that's a separate commit.

@rustyrussell rustyrussell merged commit 1ddc1a5 into lightning:master Oct 29, 2018
@nayuta-ueno nayuta-ueno deleted the both_add_htlc branch October 29, 2018 01:45
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

Successfully merging this pull request may close these issues.

None yet

5 participants