[bug]: Briefly Unavailable Feerate Source defaults to 25 sats/vB leading to FCs

Aperta
#11,316 4 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@saubyk ci sta già lavorando.

Dal 28/10/2026.

  • #11333 di @mvanhorn — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
43/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, payments

Direzione di ricerca

Start by tracing how LND obtains feerates from the configured chain backend and where it falls back to 25 sats/vB when that source is unavailable; the issue does not name files or tests. Check how the fallback interacts with channel fee updates and force-closure decisions. Done means a brief backend outage no longer triggers the reported force-closure risk, with regression coverage for that behavior.

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

Descrizione

bug needs triage
Pre-Submission Checklist
  • I have searched the existing issues and believe this is a new bug.
  • I am not asking a question about how to use lnd, but reporting a bug (otherwise open a discussion).
LND Version

v0.21.1-beta, for example

LND Configuration

Bitcoin Core as feerate source, for example

Backend Version

Any Bitcoin Core

Backend Configuration

default

OS/Distribution

Any

Bug Details & Steps to Reproduce

If the feerate source (in some cases at least Bitcoin Core, but I imagine likely others) is unavailable for as short as 20 minutes LND keeps running but instantly sets all the feerates it uses for peer channels to 25 sats/vB. This is (obviously) an absurd feerate today, and can lead to force-closures as setting an absurd feerate can be indistinguishable from a dust-inflation attack making it look like a peer is trying to steal funds.

Expected Behavior

If the entire chain backend is offline, setting feerates really high isn't really that interesting of a solution - we aren't syncing the chain at all, and there's lots of risk to that, worrying about channel feerates is the least of our concerns. Even more generally, setting the channel feerate high isn't really the most critical thing to do - if there's active anchor spends going on that aren't confirming we definitely need to RBF them (irrespective of our feerate estimator!) but bumping the channel fee almost doesn't matter - post-anchors its not all that important at all. Risking force-closure for this post-anchors really doesn't feel like the right tradeoff.

Debug Information

No response

Environment

No response

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.