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