Skip to content

lightningd: cleanup unused splice_locked_memonly flag - #9612

Open
Lagrang3 wants to merge 1 commit into
ElementsProject:masterfrom
Lagrang3:cleanup-locked-memonly
Open

Lagrang3 wants to merge 1 commit into
ElementsProject:masterfrom
Lagrang3:cleanup-locked-memonly

Conversation

@Lagrang3

@Lagrang3 Lagrang3 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

After 476aca4
"lightningd: don't broadcast a locked splice's stale commitment on force close" the value of the flag splice_locked_memonly is always false leading to dead code.

Remove all the unused logic.

After 476aca4
"lightningd: don't broadcast a locked splice's stale commitment on force close"
the value of the flag splice_locked_memonly is always false leading to dead code.

Remove all the unused logic.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
@Lagrang3 Lagrang3 added this to the v26.12 milestone Oct 8, 2026
@Lagrang3
Lagrang3 requested review from ddustin and nGoline October 8, 2026 13:07
@ddustin

ddustin commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

This approach (just deleting it) will not work.

The issue is a race condition in the event infrastructure. A correct solution would either refactor the entire event infrastructure to prevent the race condition. Another approach might be to separate inflights out of the normal event structure entirely, implementing the necessary event code from scratch for this particular need.

Other approaches might work as well but these two 'correct' solutions are quite large / difficult / error prone for vital code which is why the splice_locked_memonly hack was put in place to begin with.

Just deleting splice_locked_memonly will only break the whole thing.

@Lagrang3

Lagrang3 commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

@ddustin you have better insight into this than me. Feel free to propose a better approach.

This branch has not been deployed

No deployments
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.

2 participants