electrs: remove redundant daemonrpc option

This commit is contained in:
Erik Arvstedt 2020-09-27 12:43:15 +02:00
parent a19d3b07c2
commit 611cfe5a28
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 12 deletions

View File

@ -41,13 +41,6 @@ in {
default = 50001;
description = "RPC port.";
};
daemonrpc = mkOption {
type = types.str;
default = "127.0.0.1:8332";
description = ''
Bitcoin daemon JSONRPC 'addr:port' to connect
'';
};
extraArgs = mkOption {
type = types.separatedString " ";
default = "";
@ -95,7 +88,7 @@ in {
--db-dir='${cfg.dataDir}' \
--daemon-dir='${bitcoind.dataDir}' \
--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}
'';
User = cfg.user;

View File

@ -298,10 +298,7 @@ in {
cliExec = mkCliExec "liquidd";
};
services.electrs = {
address = netns.electrs.address;
daemonrpc = "${netns.bitcoind.address}:${toString config.services.bitcoind.rpc.port}";
};
services.electrs.address = netns.electrs.address;
services.spark-wallet = {
host = netns.spark-wallet.address;