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:
parent
8763003ace
commit
ac4100f50f
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue