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

BOLT #2: Normal Operation #142

Closed
linzhm opened this issue Apr 1, 2017 · 1 comment
Closed

BOLT #2: Normal Operation #142

linzhm opened this issue Apr 1, 2017 · 1 comment

Comments

@linzhm
Copy link

linzhm commented Apr 1, 2017

+-------+                            +-------+
|       |--(1)---- add_htlc   ------>|       |
|       |--(2)---- add_htlc   ------>|       |
|       |<-(3)---- add_htlc   -------|       |
|       |                            |       |
|       |--(4)----   commit   ------>|       |
|   A   |                            |   B   |
|       |<-(5)--- revoke_and_ack-----|       |
|       |<-(6)----   commit   -------|       |
|       |                            |       |
|       |--(7)--- revoke_and_ack---->|       |
+-------+                            +-------+

If the receiver A had given senderB (4)commit, and B drop the connection on purpse. Then sender B can have an commitment that can't be revoked. Even sender have the new commitment causing it to lose token, sender B can have a snapshot of current state. If they exchange commitment after that, and B has send more token to receiver A, B can then sign and publish the commit mentioned above to cheat.

@linzhm
Copy link
Author

linzhm commented Apr 1, 2017

Sorry about the issue, I figured that an commit must be revoked until one make another commit.

@linzhm linzhm closed this as completed Apr 1, 2017
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

1 participant