lnd: rename neutrino.addpeers to neutrino.peers
Use simpler naming for the NixOS option. The option defines which peers to connect to, not the action of adding them. 🤖 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
ab188f03f8
commit
7d06fed28c
1 changed files with 5 additions and 5 deletions
|
|
@ -150,12 +150,12 @@ let
|
||||||
description = "The backend to use for fetching blockchain data.";
|
description = "The backend to use for fetching blockchain data.";
|
||||||
};
|
};
|
||||||
neutrino = {
|
neutrino = {
|
||||||
addpeers = mkOption {
|
peers = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
example = [ "192.168.1.1:8333" "btcd.example.com:8333" ];
|
example = [ "192.168.1.1:8333" "btcd.example.com:8333" ];
|
||||||
description = ''
|
description = ''
|
||||||
List of Bitcoin full node peers to connect to via neutrino.addpeer.
|
List of Bitcoin full node peers to connect to for neutrino.
|
||||||
Multiple peers provide redundancy for maximum uptime.
|
Multiple peers provide redundancy for maximum uptime.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
@ -206,7 +206,7 @@ let
|
||||||
bitcoind.zmqpubrawtx=${zmqHandleSpecialAddress bitcoind.zmqpubrawtx}
|
bitcoind.zmqpubrawtx=${zmqHandleSpecialAddress bitcoind.zmqpubrawtx}
|
||||||
'' else ''
|
'' else ''
|
||||||
bitcoin.node=neutrino
|
bitcoin.node=neutrino
|
||||||
${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.addpeers}
|
${lib.concatMapStringsSep "\n" (peer: "neutrino.addpeer=${peer}") cfg.neutrino.peers}
|
||||||
fee.url=${cfg.neutrino.feeUrl}
|
fee.url=${cfg.neutrino.feeUrl}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
|
@ -232,10 +232,10 @@ in {
|
||||||
services.lnd.port to a port other than 9735.
|
services.lnd.port to a port other than 9735.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{ assertion = cfg.backend != "neutrino" || cfg.neutrino.addpeers != [];
|
{ assertion = cfg.backend != "neutrino" || cfg.neutrino.peers != [];
|
||||||
message = ''
|
message = ''
|
||||||
When using neutrino backend, you must configure at least one peer
|
When using neutrino backend, you must configure at least one peer
|
||||||
in services.lnd.neutrino.addpeers.
|
in services.lnd.neutrino.peers.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue