lnd: add neutrino.maxPeers option

Allow configuring the maximum number of inbound and outbound peers
for neutrino. Default is 8, matching lnd's default.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
padreug 2025-12-24 17:38:02 +01:00
parent 7d06fed28c
commit a019f79283

View file

@ -167,6 +167,13 @@ let
Required because neutrino doesn't have access to mempool data.
'';
};
maxPeers = mkOption {
type = types.int;
default = 8;
description = ''
Maximum number of inbound and outbound peers for neutrino.
'';
};
};
};
@ -207,6 +214,7 @@ let
'' else ''
bitcoin.node=neutrino
${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers}
neutrino.maxpeers=${toString cfg.neutrino.maxPeers}
fee.url=${cfg.neutrino.feeUrl}
''}