Skip to content

Reject channels serialized with version <= 2 #3632

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

Merged

Conversation

jkczyz
Copy link
Contributor

@jkczyz jkczyz commented Feb 28, 2025

Follow-ups to #3604

  • e23d32d removed support for these versions, so serializations with them should be explicitly rejected.
  • 21ed477 changed ChannelTransactionParameters deserialization to pass in channel_value_satoshis, so it does not actually need to be overwritten as was done in an earlier draft of the commit.

e23d32d removed support for these
versions, so serializations with them should be explicitly rejected.
21ed477 changed
ChannelTransactionParameters deserialization to pass in
channel_value_satoshis, so it does not actually need to be overwritten
as was done in an earlier draft of the commit.
e23d32d removed support for
reading ancient `Channel`s but left a bit of cleanup for later.

Here we mark a few TLVs as `required` which were always written
in 0.0.113.
@TheBlueMatt TheBlueMatt requested a review from wpaulino March 3, 2025 18:56
@wpaulino wpaulino merged commit 5099dce into lightningdevkit:main Mar 3, 2025
25 of 26 checks passed
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.

3 participants