Move zmq options from nix-bitcoin.nix to bitcoind module

This commit is contained in:
Jonas Nick 2019-09-02 21:22:29 +00:00
parent e4d2aab561
commit cf39d88c63
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
2 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,10 @@ let
${optionalString (cfg.rpcuser != null) "rpcuser=${cfg.rpcuser}"} ${optionalString (cfg.rpcuser != null) "rpcuser=${cfg.rpcuser}"}
${optionalString (cfg.rpcpassword != null) "rpcpassword=${cfg.rpcpassword}"} ${optionalString (cfg.rpcpassword != null) "rpcpassword=${cfg.rpcpassword}"}
# ZMQ options
${optionalString (cfg.zmqpubrawblock != null) "zmqpubrawblock=${cfg.zmqpubrawblock}"}
${optionalString (cfg.zmqpubrawtx != null) "zmqpubrawtx=${cfg.zmqpubrawtx}"}
# Extra config options (from bitcoind nixos service) # Extra config options (from bitcoind nixos service)
${cfg.extraConfig} ${cfg.extraConfig}
''; '';

View File

@ -75,8 +75,6 @@ in {
discover=0 discover=0
addresstype=bech32 addresstype=bech32
changetype=bech32 changetype=bech32
${optionalString (config.services.lnd.enable) "zmqpubrawblock=${config.services.bitcoind.zmqpubrawblock}"}
${optionalString (config.services.lnd.enable) "zmqpubrawtx=${config.services.bitcoind.zmqpubrawtx}"}
''; '';
services.bitcoind.prune = 0; services.bitcoind.prune = 0;
services.bitcoind.dbCache = 1000; services.bitcoind.dbCache = 1000;