-
Notifications
You must be signed in to change notification settings - Fork 991
splice: add zero-conf splice support per BOLT #2 #8985
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
Changes from 1 commit
7ca893f
a0aa161
32471fa
7931c83
7bd121c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -699,6 +699,13 @@ static enum watch_result splice_depth_cb(struct lightningd *ld, | |
| return DELETE_WATCH; | ||
| } | ||
|
|
||
| /* Reorged out? OK, we're not committed yet. | ||
| * But for zero-conf channels (minimum_depth == 0), depth 0 means | ||
| * we should send splice_locked immediately per BOLT #2. */ | ||
| if (depth == 0 && inflight->channel->minimum_depth != 0) { | ||
| return KEEP_WATCHING; | ||
| } | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not the right place to be trying to do zero-conf. Instead we should initiate This needs to be done with extra care because this flow can occur from initiate, accepter, or during the reestablish flow. We need to make sure it's behaving correctly in each of these flows. Probably the best approach is to take the code in It would be very important to duplicate the tests in
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in 7bd121c. I moved zero-conf I also duplicated the disconnect regressions for zero-conf in |
||
| if (inflight->channel->owner) { | ||
| log_debug(inflight->channel->log, "splice_depth_cb: sending funding depth scid: %s", | ||
| fmt_short_channel_id(tmpctx, *inflight->scid)); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.