From 0c22af03b7ae2c4b70536210b54b86814f0f9fd5 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Thu, 7 Nov 2019 22:58:21 +0000 Subject: [PATCH] Allow AnyProtocol for bitcoin if zmq options are set (and not if lnd is enabled) --- modules/bitcoind.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 2cb0eb9..f87dd99 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -253,9 +253,9 @@ in { PermissionsStartOnly = "true"; } // nix-bitcoin-services.defaultHardening // (if cfg.enforceTor - then nix-bitcoin-services.allowTor - else nix-bitcoin-services.allowAnyIP - ) // optionalAttrs config.services.lnd.enable nix-bitcoin-services.allowAnyProtocol; # FOR ZMQ + then nix-bitcoin-services.allowTor + else nix-bitcoin-services.allowAnyIP) + // optionalAttrs (cfg.zmqpubrawblock != null || cfg.zmqpubrawtx != null) nix-bitcoin-services.allowAnyProtocol; }; systemd.services.bitcoind-import-banlist = { description = "Bitcoin daemon banlist importer";