staticaddr: a deposit unlocked between the refresh and the lookup can be quoted or selected
Los mantenedores suelen responder en 1 día
@claravanstaden ya está trabajando en esto.
Desde el 12/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Start in staticaddr/loopin/manager.go at initiateLoopIn, then trace EnsureDepositsFresh, syncActiveDeposits, and the deposit lookup that follows the refresh. Check how the selected deposits can be validated against the refreshed UTXOs or refreshed after a failed swap returns a deposit to Deposited. Done when a replaced deposit cannot be quoted or selected in that window; the issue mentions an integration test that reproduces the race.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
EnsureDepositsFresh and the deposit lookup that follows it are two separate steps. syncActiveDeposits only drops deposits that are Deposited and gone from lnd's wallet, so a deposit that is still LoopingIn during the refresh is kept even if its funding tx was replaced. If the swap fails and unlocks that deposit before the lookup, the lookup finds it back in Deposited and uses it.
Seen in an integration test: after a restart, a stored risk rejection failed a swap whose deposit had been replaced by RBF while loopd was offline. A static loop-in quote for that outpoint arrived 5ms before the unlock and was answered. The next refresh drops the deposit.
The same two steps run before a loop-in starts (staticaddr/loopin/manager.go, initiateLoopIn), so manual or automatic selection can also pick the replaced deposit in that window. The server checks that the deposit outpoints are unspent when the swap starts, so the swap is rejected. Funds are not at risk, the user sees one failed swap attempt.
Possible fixes:
- after the lookup, check the selected deposits against the utxos the refresh just listed;
- or run the refresh again when a deposit comes back to
Depositedafter a failed swap.
Low priority.
- Lenguaje dominante
- Go
- Estrellas
- 593
- Forks
- 139
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 21
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lightninglabs/loop
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
lightninglabs/loop#1246 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
lightninglabs/loop#1309 ·
Los mantenedores suelen responder en 1 día
-
GPG key, GPG key fingerprintAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 49/100
lightninglabs/loop#1276 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
lightninglabs/loop#1274 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
lightninglabs/loop#1208 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de lightninglabs/loop
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Cojekt/LibreDental#258 ·
Los mantenedores suelen responder en 1 día
-
cmd/podiomd: permission MCP stalls the turn when a tool input exceeds the 64KB scanner limitAbiertogo good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opensro-dev/opensro#4949 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 3 días
-
agent-execution/02 row 4: consumers Verify row lacks delivery/base binding, cannot pass post-mergeAbiertobug effort:s impact:low raised-by:verifier risk:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
medici-finance/assay#7946 · 1 comentario ·
Los mantenedores suelen responder en 1 día