From ac4100f50f4fbde0c47ea57a6e2b81d783ba778d Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 22 Dec 2025 10:31:56 +0100 Subject: [PATCH] lnd: add fee.url for neutrino on mainnet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Neutrino doesn't have access to mempool data, so LND requires an external fee estimation URL when running on mainnet. Add feeUrl option with Lightning Labs endpoint as default. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude Opus 4.5 --- modules/lnd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/lnd.nix b/modules/lnd.nix index 00478d0..3482cce 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -159,6 +159,14 @@ let Multiple peers provide redundancy for maximum uptime. ''; }; + feeUrl = mkOption { + type = types.str; + default = "https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json"; + description = '' + URL for fee estimation when using neutrino on mainnet. + Required because neutrino doesn't have access to mempool data. + ''; + }; }; }; @@ -199,6 +207,7 @@ let '' else '' bitcoin.node=neutrino ${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.addpeers} + fee.url=${cfg.neutrino.feeUrl} ''} wallet-unlock-password-file=${secretsDir}/lnd-wallet-password