-
Notifications
You must be signed in to change notification settings - Fork 377
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
Update splice messages according to new spec draft #3129
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3129 +/- ##
==========================================
+ Coverage 89.92% 91.15% +1.22%
==========================================
Files 121 121
Lines 99172 107295 +8123
Branches 99172 107295 +8123
==========================================
+ Hits 89180 97803 +8623
+ Misses 7391 7009 -382
+ Partials 2601 2483 -118 ☔ View full report in Codecov by Sentry. |
7423566
to
35a08ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't bother to check if it matches the spec, we'll find out when we try to use it if it doesnt.
35a08ae
to
bb84c5f
Compare
Pushed some minor fuzz fixes; ready for review. |
bb84c5f
to
43a6ee3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Bound to be some additional changes coming up anyway, but I've reviewed what's here against the current draft messages.
Some changes to the splice messages according to new spec draft lightning/bolts#1160
The splicing messages are not yet used (on main).
The list of changes (some new fields, some renames):
CommitmentSigned
: New optional batch parameters, used in case multiple commitment are updated at once. Optionalbatch
field of typeCommitmentSignedBatch
, containing batch size and funding txid.TxAddInput
: New optional fieldshared_input_txid
, to be used when during splicing the previous funding transaction is added as an input (funding_txid
).TxSignatures
: Rename optional field toshared_input_signature
, fromfunding_outpoint_sig
.SpliceInit
: Rename msg to SpliceInit, from Splice (msg is nowsplice_init
in spec) (also SendSpliceInit, handle_splice_init)SpliceInit
: Rename amount field tofunding_contribution_satoshis
(fromrelative_satoshis
). Note that his is the part of the initiator only.SpliceInit
: New optional bool fieldrequire_confirmed_inputs
.SpliceInit
: Thechain_hash
field is removed (not needed).SpliceAck
: Rename amount field tofunding_contribution_satoshis
(fromrelative_satoshis
). Note that his is the part of the acceptor only.SpliceAck
: New optional bool fieldrequire_confirmed_inputs
.SpliceAck
: Thechain_hash
field is removed (not needed).SpliceLocked
: Added newsplice_txid
field, with the id of the new locked funding txSpliceInit
andSpliceAck
to80
&81
(from 75 & 76)