Don't FC during startup chain relay if we might be able to salvage the channel by connecting to a peer

Abierto
#4,048 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

The issue describes force-close during startup chain replay when a pending outbound HTLC is about to expire, versus waiting to connect to the peer so they can fail the HTLC. No files, tests, or entry points are named. Start by locating startup chain-relay and channel force-close paths around pending HTLCs, then decide when connecting to a peer should delay FC. Done means the node no longer force-closes in that salvageable case, especially for LSP/async mobile sending.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

If we've been offline for a while and had a pending outbound HTLC, on startup we may replay blocks, notice its gonna expire and FC the channel, but if we had just waited long enough to connect to our peer they may have resolved the HTLC immediately on connection (with a failure, if they haven't FCd yet either). This is a much more important issue for LSP clients doing async sending on a mobile.

Lenguaje dominante
Rust
Estrellas
1.4k
Forks
482
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lightningdevkit/rust-lightning

Todos los issues de lightningdevkit/rust-lightning

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.