From b3e868d0af9a1b724d8466affbaa4c7d5454084d Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 2 Nov 2021 15:15:29 +0100 Subject: [PATCH] tests/regtest: disable incompatible `validatepegin` for liquidd Otherwise liquidd startup fails. This bug was not covered by our tests, because we're not combining `regtest` with `secure-node`. But nixbitcoin.org does, which should suffice for now. --- modules/liquid.nix | 6 ++++++ test/tests.nix | 3 +++ 2 files changed, 9 insertions(+) diff --git a/modules/liquid.nix b/modules/liquid.nix index 2c072f8..dd8d884 100644 --- a/modules/liquid.nix +++ b/modules/liquid.nix @@ -234,6 +234,12 @@ in { inherit options; config = mkIf cfg.enable { + assertions = [ + { assertion = bitcoind.regtest -> cfg.validatepegin != true; + message = "liquidd: `validatepegin` is incompatible with regtest."; + } + ]; + services.bitcoind.enable = true; environment.systemPackages = [ diff --git a/test/tests.nix b/test/tests.nix index 1f50398..ca924d8 100644 --- a/test/tests.nix +++ b/test/tests.nix @@ -248,6 +248,9 @@ let services.lightning-pool.extraConfig = '' auctionserver=localhost ''; + + # `validatepegin` is incompatible with regtest + services.liquidd.validatepegin = mkForce false; }; ## Examples / debug helper