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

Open
#11,316 4 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@saubyk is already working on this.

Since Oct 28, 2026.

  • #11333 by @mvanhorn — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
backend, payments

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Go
Stars
8.2k
Forks
2.3k
Avg merge
1d 11h
Merged PRs (30d)
103

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lightningnetwork/lnd

All issues in lightningnetwork/lnd

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.