lnd: add fee.url for neutrino on mainnet

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 <noreply@anthropic.com>
This commit is contained in:
padreug 2025-12-22 10:31:56 +01:00
parent 8763003ace
commit ac4100f50f

View file

@ -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