sweep: bounded batching of CPFP children of pre-signed second-level HTLC txs

Aperta
#11,576 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, payments

Direzione di ricerca

The issue names no files or tests, so start from the anchor-child registration referenced in #11094 and the package submission side in #11124. Read how children are registered with NoInputBatch and how a failed child is handled today. The issue asks for tests showing that a healthy anchor is reoffered when a sibling's parent goes missing, and that wallet inputs are recovered on rebuild. Settling the batching design first is needed before any code change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Each anchor child of a pre-signed second-level HTLC tx (#11094) is registered with NoInputBatch, so every child ties up its own confirmed wallet UTXO while it sits unconfirmed. A peer that triggers many HTLC resolutions at once can exhaust the confirmed inputs that other urgent sweeps need, even with plenty of BTC in unconfirmed change.

The per-child tx exists for failure isolation: a parent that gets evicted or replaced must only fail its own child, never the sweeps batched with it.

A bounded batch of CPFP-only inputs would keep that property while using fewer wallet inputs:

  • ordinary sweep inputs stay outside these batches
  • when one parent disappears, the child is rebuilt without that anchor instead of failing the batch
  • the wallet inputs of the failed child are released for the rebuild

Needs tests that a healthy anchor in such a batch is reoffered when a sibling's parent goes missing, and that the wallet inputs are recovered when the child is rebuilt.

Raised by @yyforyongyu in the review of #11094. Refs #11124 for the package submission side.

Lingua principale
Go
Stelle
8.2k
Fork
2.3k
Merge medio
1g 11h
PR unite (30g)
103

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningnetwork/lnd

Tutte le issue di lightningnetwork/lnd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.