From cf39d88c63303a23e2040cc16807c04f39e6c6f4 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Mon, 2 Sep 2019 21:22:29 +0000 Subject: [PATCH] Move zmq options from nix-bitcoin.nix to bitcoind module --- modules/bitcoind.nix | 4 ++++ modules/nix-bitcoin.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 13bb18a..2cb0eb9 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -27,6 +27,10 @@ let ${optionalString (cfg.rpcuser != null) "rpcuser=${cfg.rpcuser}"} ${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) ${cfg.extraConfig} ''; diff --git a/modules/nix-bitcoin.nix b/modules/nix-bitcoin.nix index 85c869f..d1d57b1 100644 --- a/modules/nix-bitcoin.nix +++ b/modules/nix-bitcoin.nix @@ -75,8 +75,6 @@ in { discover=0 addresstype=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.dbCache = 1000;