Enable validatepegin for Liquid

This commit is contained in:
nixbitcoin 2019-07-26 14:19:17 +02:00
parent 193b6339f9
commit 8f9082f893
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,7 @@ let
${optionalString cfg.testnet "testnet=1"} ${optionalString cfg.testnet "testnet=1"}
${optionalString (cfg.dbCache != null) "dbcache=${toString cfg.dbCache}"} ${optionalString (cfg.dbCache != null) "dbcache=${toString cfg.dbCache}"}
${optionalString (cfg.prune != null) "prune=${toString cfg.prune}"} ${optionalString (cfg.prune != null) "prune=${toString cfg.prune}"}
${optionalString (cfg.validatepegin != null) "validatepegin=${if cfg.validatepegin then "1" else "0"}"}
# Connection options # Connection options
${optionalString (cfg.port != null) "port=${toString cfg.port}"} ${optionalString (cfg.port != null) "port=${toString cfg.port}"}
@ -166,6 +167,13 @@ in {
to stay under the specified target size in MiB) 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; enforceTor = nix-bitcoin-services.enforceTor;
}; };
}; };

View File

@ -143,6 +143,7 @@ in {
mainchainrpcuser=${config.services.bitcoind.rpcuser} mainchainrpcuser=${config.services.bitcoind.rpcuser}
mainchainrpcport=8332 mainchainrpcport=8332
"; ";
services.liquidd.validatepegin = true;
services.liquidd.listen = true; services.liquidd.listen = true;
services.liquidd.proxy = config.services.tor.client.socksListenAddress; services.liquidd.proxy = config.services.tor.client.socksListenAddress;
services.liquidd.enforceTor = true; services.liquidd.enforceTor = true;