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

Send batch_size on commit_sig retransmit #2809

Merged
merged 1 commit into from Jan 10, 2024

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jan 10, 2024

If we get disconnected after sending commit_sig, we will retransmit that message when reconnecting if our peer has not received it.

When we have multiple commitments, we need to retransmit one message per commitment, and include the batch_size tlv.

We incorrectly stored commit_sig without the batch_size tlv in the next remote commit field, and thus retransmitted without that tlv.

If we get disconnected after sending `commit_sig`, we will retransmit
that message when reconnecting if our peer has not received it.

When we have multiple commitments, we need to retransmit one message
per commitment, and include the `batch_size` tlv.

We incorrectly stored `commit_sig` without the `batch_size` tlv in the
next remote commit field, and thus retransmitted without that tlv.
@t-bast t-bast requested a review from pm47 January 10, 2024 13:41
Copy link
Member

@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.

Nice find! And it looks better that way.

@t-bast t-bast merged commit 3bd3d07 into master Jan 10, 2024
1 check passed
@t-bast t-bast deleted the fix-commit-sig-batch-reconnect branch January 10, 2024 14:05
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

2 participants