Repository navigation
Fund BOLT12 LSPS2 test service per JIT channel - #1241
Merged
tnull merged 1 commit intoNov 18, 2026
Merged
Conversation
|
👋 Thanks for assigning @jkczyz as a reviewer! |
jkczyz
reviewed
Nov 17, 2026
jkczyz
left a comment
Contributor
There was a problem hiding this comment.
Just some minor corrections.
🤖 The commit message says the first funding transaction's input stays locked because the transaction is withheld until the client claims. But the client claims that payment before the restart. The lock holds until the wallet sees the funding transaction confirm, and the test mines no blocks after the JIT channels open. The restart doesn't matter either. Maybe:
The BOLT12 LSPS2 integration test has failed consistently since it
landed together with the funding-input locks. Its service holds a
single coin but opens three JIT channels without mining or syncing in
between. A funding transaction's inputs stay locked until the wallet
sees it confirm, and the wallet learns of its change only from a sync,
so the service has no coin left for the second JIT channel.
The BOLT12 LSPS2 integration test has failed consistently since it landed together with the funding-input locks. Its service holds a single coin but opens three JIT channels without mining or syncing in between. A funding transaction's inputs stay locked until the wallet sees it confirm, and the wallet learns of its change only from a sync, so the service has no coin left for the second JIT channel. Fund the service with one coin per JIT channel, mirroring how the BOLT11 LSPS2 integration test was adapted for the same locks. The locks themselves are correct: without them, the service would have double-spent the same coin across the funding transactions. Co-Authored-By: HAL 9000
tnull
force-pushed
the
2026-11-fix-bolt12-lsps2-restart
branch
from
November 18, 2026 09:07
5a4ee7a to
caceee0
Compare
jkczyz
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The BOLT12 LSPS2 integration test has failed consistently since it landed together with the funding-input locks. Its service holds a single coin but opens three JIT channels without syncing in between. Because the first funding transaction is withheld until the client claims, its input stays locked and the service has no funds left for the second JIT channel after the client restarts.
Fund the service with one coin per JIT channel, mirroring how the BOLT11 LSPS2 integration test was adapted for the same locks. The locks themselves are correct: without them, the service would have double-spent the same coin across the funding transactions.
Co-Authored-By: HAL 9000