Add Splicing (and Quiescence) wire message definitions#2544
Add Splicing (and Quiescence) wire message definitions#2544TheBlueMatt merged 1 commit intolightningdevkit:mainfrom
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2544 +/- ##
==========================================
- Coverage 88.85% 88.68% -0.17%
==========================================
Files 113 113
Lines 89170 89344 +174
Branches 89170 89344 +174
==========================================
+ Hits 79228 79238 +10
- Misses 7699 7859 +160
- Partials 2243 2247 +4
☔ View full report in Codecov by Sentry. |
|
Thanks! Yeah, due to the drafty nature of the spec, there's no rush to merge this, but then again it can always be reworked as they're also not yet used in release.
Oh, really? Spec PR probably hasn't been updated in while. Thanks for tracking it. Then we'll definitely keep this draft until there's a clear type. |
d4288b9 to
2ddc70f
Compare
|
Did some changes to be in sync with CLN, as opposed to the outdated version of the spec (but this will need confirmation):
Note: definition in CLN https://github.com/ElementsProject/lightning/blob/master/wire/peer_wire.csv#L209 |
e1e2870 to
1e9eece
Compare
|
This is on hold, due to the spec not being updated. Above changes are in sync with the CLN implementation, but not the spec. Specifically, using Therefore I suggest to take this as a confirmation, and do not necessarily wait for spec update with this PR. I will wrap up with adding fuzzing tests and propose for review. |
|
Out of curiosity what do Eclair/Phoenix do? |
They are currently using nonstandard |
2170dca to
792e42a
Compare
6380a80 to
02cbedc
Compare
|
Nice. I think we can squash the fix ups and formatting commits now :) |
02cbedc to
649129d
Compare
|
Squashed and rebased |
TheBlueMatt
left a comment
There was a problem hiding this comment.
I'll trust @dunxen on the message encodings and contents.
Add Splicing and Quiescence wire messages.
The messages are defined in the LN spec PR 863 (draft). Note that the spec PR is currently a draft, it needs a rebase, and does not reflect the latest state of discussions.
The following messages are added:
stfu(2)splice(75* -- see notes below)splice_ack(76)splice_locked(77)Fixes #2542 .
Note that current spec PR specifies type
74forsplicemessage, but that value is already used (bytx_abort), so value75is used as of now in this PR.TODO:
splicemsg