-
Notifications
You must be signed in to change notification settings - Fork 913
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
Splice: Interop Final (probably) with Eclair #8021
base: master
Are you sure you want to change the base?
Splice: Interop Final (probably) with Eclair #8021
Conversation
@remyers reported this fix made his splice interop test pass! 🎉🚀 |
e86bfbc
to
facfeeb
Compare
29d52d1
to
45ae772
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.
very cool!
@@ -200,6 +200,7 @@ new_inflight(struct channel *channel, | |||
|
|||
inflight->i_am_initiator = i_am_initiator; | |||
inflight->force_sign_first = force_sign_first; | |||
inflight->is_locked = false; | |||
inflight->splice_locked_memonly = false; |
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.
it'd be great to add this to wallet/tests/run-wallet.c
for the inflights
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.
Added
@@ -3829,7 +3829,7 @@ static void splice_accepter(struct peer *peer, const u8 *inmsg) | |||
new_inflight->remote_funding = peer->splicing->remote_funding_pubkey; | |||
new_inflight->outpoint = outpoint; | |||
new_inflight->amnt = both_amount; | |||
new_inflight->psbt = tal_steal(new_inflight, ictx->current_psbt); | |||
new_inflight->psbt = clone_psbt(new_inflight, ictx->current_psbt); |
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.
yeah tal_steal and psbt code aren't good friends
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.
No more theft among psbt 🙅
|
||
if (!fromwire_splice_locked(msg, &chanid)) | ||
if (!fromwire_splice_locked(msg, &chanid, &splice_txid)) |
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.
we're not checking it?
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.
Added a check for it in e117ec4
e117ec4
to
e91b6b7
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.
ACK e91b6b7
pending tests pass :)
8907321
to
728c339
Compare
Interop testing with Eclair revealed an issue with remote funding key rotation. This searches for the funding output using the rotated remote funding pubkey instead of the furrent funding pubkey. Also update the variable name to be more clear which this represents. Changelog-Changed: Interop fixes for compatability with Eclair
This is needed to remember if a splice was locked and reconnect occurs mid `splice_locked` attempted so it can be resumed in reestablish.
This field should be serialized for communication between channeld and lightningd.
To support resuming `splice_locked` across channel reconnect, we need to pass inflight `is_locked` between lightningd and channeld. This implements that interface between channeld and lightningd so each inflight should have up to date `is_locked` values between restarts.
Use the inflight information to set a correct `locked_txid` value on restart. This is critical for handling interrupted `splice_locked` events that need to be resumed on reconnect/reestablish.
A new case where `splice_locked` must be sent again on reestablish. This handles the case where `splice_locked` did not complete locally or remotely and must be resumed.
b7f85d1
to
80fc38d
Compare
PSBT changeset routines were using linearize_output which mutated the memory of the objects it was comparing. This commit fixes that and also cleans up the memory usage to be more clear and more guarentee there is no memory corruption. Changelog-None
80fc38d
to
a20f2ef
Compare
Update splice flows to use the new `clone_psbt` method instead of stealing back and forth.
8def35d
to
c41c880
Compare
c41c880
to
324a890
Compare
Interop testing with Eclair revealed an issue with remote funding key rotation.
This searches for the funding output using the rotated remote funding pubkey instead of the current funding pubkey.
Update the variable name to be more clear which this represents.
Implement new pending spec changes for
splice_locked
resuming in reestablish.Fixes #8030