Skip to content

Switch SplicePrototype feature flag to the prod feature bit#4387

Merged
TheBlueMatt merged 2 commits intolightningdevkit:mainfrom
TheBlueMatt:2026-02-stop-squatting-features
Feb 6, 2026
Merged

Switch SplicePrototype feature flag to the prod feature bit#4387
TheBlueMatt merged 2 commits intolightningdevkit:mainfrom
TheBlueMatt:2026-02-stop-squatting-features

Conversation

@TheBlueMatt
Copy link
Collaborator

When we shipped 0.2 we used the feature bit 155 to signal splicing,
in line with what eclair was using. However, eclair was actually
using that bit to signal splicing on a previous design which is
incompatible with the current spec.

The result of this was that eclair nodes may attempt to splice
using their protocol and we'd fail to deserialize their splice
message (resulting in a reconnect, which luckily would clear their
splice attempt and return the connection to normal).

As we really need to get off of their feature bit and there's not
much reason to keep using a non-final-spec bit, we simply redefine
`SplicePrototype` to bit 63 here.

We need to backport the first commit to 0.2 to fix current compat issues.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Feb 5, 2026

👋 Thanks for assigning @wpaulino as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@wpaulino wpaulino requested review from wpaulino and removed request for joostjager February 5, 2026 16:55
@wpaulino
Copy link
Contributor

wpaulino commented Feb 5, 2026

@TheBlueMatt this needs a rebase

When we shipped 0.2 we used the feature bit 155 to signal splicing,
in line with what eclair was using. However, eclair was actually
using that bit to signal splicing on a previous design which is
incompatible with the current spec.

The result of this was that eclair nodes may attempt to splice
using their protocol and we'd fail to deserialize their splice
message (resulting in a reconnect, which luckily would clear their
splice attempt and return the connection to normal).

As we really need to get off of their feature bit and there's not
much reason to keep using a non-final-spec bit, we simply redefine
`SplicePrototype` to bit 63 here.
Now that `SplicePrototype` and `SpliceProduction` share the same
feature bit, there's not really any reason to have the
`SplicePrototype` feature at all. Instead, we drop it, leaving only
a `Splice` feature.
@TheBlueMatt TheBlueMatt force-pushed the 2026-02-stop-squatting-features branch from 2992536 to 5427b0d Compare February 5, 2026 19:45
@TheBlueMatt
Copy link
Collaborator Author

Oops sorry I did this on 0.2, pushed against main.

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.01%. Comparing base (dde2c82) to head (5427b0d).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4387   +/-   ##
=======================================
  Coverage   86.00%   86.01%           
=======================================
  Files         156      156           
  Lines      102857   102834   -23     
  Branches   102857   102834   -23     
=======================================
- Hits        88465    88455   -10     
+ Misses      11883    11871   -12     
+ Partials     2509     2508    -1     
Flag Coverage Δ
tests 86.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheBlueMatt TheBlueMatt merged commit e9fd567 into lightningdevkit:main Feb 6, 2026
20 of 21 checks passed
@TheBlueMatt
Copy link
Collaborator Author

Backported to 0.2 in #4389

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.

4 participants