From 8f9082f893d397da1fca49035f3dfeb80b45cd1a Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Fri, 26 Jul 2019 14:19:17 +0200 Subject: [PATCH] Enable validatepegin for Liquid --- modules/liquid.nix | 8 ++++++++ modules/nix-bitcoin.nix | 1 + 2 files changed, 9 insertions(+) diff --git a/modules/liquid.nix b/modules/liquid.nix index c308321..43aa4d6 100644 --- a/modules/liquid.nix +++ b/modules/liquid.nix @@ -10,6 +10,7 @@ let ${optionalString cfg.testnet "testnet=1"} ${optionalString (cfg.dbCache != null) "dbcache=${toString cfg.dbCache}"} ${optionalString (cfg.prune != null) "prune=${toString cfg.prune}"} + ${optionalString (cfg.validatepegin != null) "validatepegin=${if cfg.validatepegin then "1" else "0"}"} # Connection options ${optionalString (cfg.port != null) "port=${toString cfg.port}"} @@ -166,6 +167,13 @@ in { to stay under the specified target size in MiB) ''; }; + validatepegin = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Validate pegin claims. All functionaries must run this. + ''; + }; enforceTor = nix-bitcoin-services.enforceTor; }; }; diff --git a/modules/nix-bitcoin.nix b/modules/nix-bitcoin.nix index 42e1bbc..b1dc528 100644 --- a/modules/nix-bitcoin.nix +++ b/modules/nix-bitcoin.nix @@ -143,6 +143,7 @@ in { mainchainrpcuser=${config.services.bitcoind.rpcuser} mainchainrpcport=8332 "; + services.liquidd.validatepegin = true; services.liquidd.listen = true; services.liquidd.proxy = config.services.tor.client.socksListenAddress; services.liquidd.enforceTor = true;