electrs: remove redundant daemonrpc option
This commit is contained in:
parent
a19d3b07c2
commit
611cfe5a28
@ -41,13 +41,6 @@ in {
|
|||||||
default = 50001;
|
default = 50001;
|
||||||
description = "RPC port.";
|
description = "RPC port.";
|
||||||
};
|
};
|
||||||
daemonrpc = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
default = "127.0.0.1:8332";
|
|
||||||
description = ''
|
|
||||||
Bitcoin daemon JSONRPC 'addr:port' to connect
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
extraArgs = mkOption {
|
extraArgs = mkOption {
|
||||||
type = types.separatedString " ";
|
type = types.separatedString " ";
|
||||||
default = "";
|
default = "";
|
||||||
@ -95,7 +88,7 @@ in {
|
|||||||
--db-dir='${cfg.dataDir}' \
|
--db-dir='${cfg.dataDir}' \
|
||||||
--daemon-dir='${bitcoind.dataDir}' \
|
--daemon-dir='${bitcoind.dataDir}' \
|
||||||
--electrum-rpc-addr=${toString cfg.address}:${toString cfg.port} \
|
--electrum-rpc-addr=${toString cfg.address}:${toString cfg.port} \
|
||||||
--daemon-rpc-addr=${toString cfg.daemonrpc} \
|
--daemon-rpc-addr=${builtins.elemAt bitcoind.rpcbind 0}:${toString bitcoind.rpc.port} \
|
||||||
${cfg.extraArgs}
|
${cfg.extraArgs}
|
||||||
'';
|
'';
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
|
@ -298,10 +298,7 @@ in {
|
|||||||
cliExec = mkCliExec "liquidd";
|
cliExec = mkCliExec "liquidd";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.electrs = {
|
services.electrs.address = netns.electrs.address;
|
||||||
address = netns.electrs.address;
|
|
||||||
daemonrpc = "${netns.bitcoind.address}:${toString config.services.bitcoind.rpc.port}";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.spark-wallet = {
|
services.spark-wallet = {
|
||||||
host = netns.spark-wallet.address;
|
host = netns.spark-wallet.address;
|
||||||
|
Loading…
Reference in New Issue
Block a user