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

Offen
#4,048 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
22/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
1.4k
Forks
482
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus lightningdevkit/rust-lightning

Alle Issues in lightningdevkit/rust-lightning

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.