Skip to content

Add Bolt 2 comments - #3

Closed
benthecarman wants to merge 4 commits into
TheBlueMatt:2023-11-log-forward-peerfrom
benthecarman:comment-bolt2
Closed

benthecarman wants to merge 4 commits into
TheBlueMatt:2023-11-log-forward-peerfrom
benthecarman:comment-bolt2

Conversation

@benthecarman

Copy link
Copy Markdown

renamed the fields in ChannelReestablish to match Bolt 2 and copy-pasted the statements from bolt 2 as comments where we are enforcing them. I think I got all of them right but not entire sure as a lot of the name is different and there is weirdness with the 48 bit stuff.

TheBlueMatt and others added 4 commits November 9, 2023 04:14
If we're behind exactly one commitment (which we've revoked), we'd
previously force-close the channel, guaranteeing we'll lose funds
as the counterparty has our latest local commitment state's
revocation secret.

While this shouldn't happen because users should never lose data,
sometimes issues happen, and we should ensure we always panic.

Further, `test_data_loss_protect` is updated to test this case.
@TheBlueMatt
TheBlueMatt force-pushed the 2023-11-log-forward-peer branch from cc441dc to c4e9da4 Compare November 9, 2023 21:32
@TheBlueMatt

Copy link
Copy Markdown
Owner

Closing, discussed offline, not sure the comments/renames add clarity.

TheBlueMatt pushed a commit that referenced this pull request Dec 4, 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

Successfully merging this pull request may close these issues.

2 participants