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

Fix backwards compatibility of channels between 0.0.114 and 0.0.116 #12

Merged

Conversation

luckysori
Copy link
Collaborator

The (de)serialisation for ChannelTransactionParameters changed between 0.0.114 and 0.0.116. This type had already been modified by us when adding the original_funding_outpoint field. When first introduced, we chose a type value of 14.

After the update, we chose to reduce it down to 12 since the type 12 was no longer being used after changes between 0.0.114 and 0.0.116. Unfortunately, this unnecessarily broke channels created before the update.

Eventually we will need to settle on a way to handle these possible conflicts with upstream. @Tibo-lg already suggested a few options:

  • Use much larger numbers for rust-dlc custom fields.
  • Move LDK values around as we rebase on top of new changes.
  • Add a subdomain for rust-dlc custom fields.

@luckysori luckysori self-assigned this Nov 1, 2023
Copy link

@Tibo-lg Tibo-lg left a comment

Choose a reason for hiding this comment

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

LGTM, just remember to update the target branch.

@luckysori luckysori changed the base branch from check-commit-tx-number to split-channel-experiment-116 November 1, 2023 13:46
The (de)serialisation for `ChannelTransactionParameters` changed
between 0.0.114 and 0.0.116. This type had already been modified by us
when adding the `original_funding_outpoint` field. When first
introduced, we chose a type value of 14.

After the update, we chose to reduce it down to 12 since the type 12
was no longer being used after changes between 0.0.114 and 0.0.116.
Unfortunately, this unnecessarily broke channels created before the
update.

Eventually we will need to settle on a way to handle these possible
conflicts with upstream. Tibo already suggested a few options:

- Use much larger numbers for `rust-dlc` custom fields.
- Move LDK values around as we rebase on top of new changes.
- Add a subdomain for `rust-dlc` custom fields.
@luckysori luckysori force-pushed the fix/116-backwards-compatibility branch from f9d7d59 to 00c6fd6 Compare November 1, 2023 13:53
@luckysori luckysori merged commit a57281b into split-channel-experiment-116 Nov 1, 2023
2 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants