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:
parent
7d06fed28c
commit
a019f79283
1 changed files with 8 additions and 0 deletions
|
|
@ -167,6 +167,13 @@ let
|
||||||
Required because neutrino doesn't have access to mempool data.
|
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 ''
|
'' else ''
|
||||||
bitcoin.node=neutrino
|
bitcoin.node=neutrino
|
||||||
${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers}
|
${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers}
|
||||||
|
neutrino.maxpeers=${toString cfg.neutrino.maxPeers}
|
||||||
fee.url=${cfg.neutrino.feeUrl}
|
fee.url=${cfg.neutrino.feeUrl}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue