Track armed static address HTLCs after aborted swaps
I maintainer di solito rispondono entro 7 giorni
@hieblmi ci sta già lavorando.
Dal 9/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Static address loop-ins can leave the client with a durable safety obligation once it signs and hands HTLC transaction signatures to the server. Even if the client later aborts the swap, the server may still be able to publish one of those HTLC transactions until the selected deposit set is otherwise spent.
We should add a dedicated HTLC transaction monitor for aborted/static loop-in swaps where the client handed out, or may have handed out, HTLC signatures.
Expected behavior:
- Persist/register a swap as "armed" before or when HTLC signatures are handed to the server. This should cover ambiguous handoff failures where the server may have received signatures but the client did not receive a successful response.
- On startup, restore all armed HTLC monitors.
- For each armed swap, monitor the signed HTLC transaction/script for publication.
- If the HTLC confirms, keep the swap/deposits on the timeout-sweep path until the timeout path is swept.
- If any selected deposit is spent before the HTLC transaction is observed, stop the monitor for that armed HTLC because the all-input signed HTLC transaction can no longer be published.
- Disarm the monitor once the swap reaches a final safe state, such as successful completion, confirmed timeout sweep, or provable invalidation by deposit spend.
This should remove the need for each abort path to reason separately about whether the server still holds usable HTLC signatures.
- Lingua principale
- Go
- Stelle
- 593
- Fork
- 138
- Merge medio
- 4g 9h
- PR unite (30g)
- 14
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lightninglabs/loop
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
lightninglabs/loop#1246 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
lightninglabs/loop#1208 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
lightninglabs/loop#1196 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
lightninglabs/loop#1172 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
lightninglabs/loop#1170 ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di lightninglabs/loop
Issue simili
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mvanhorn/cli-printing-press#5146 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
AvengeMedia/DankMaterialShell#3853 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno