From c0358499c779d480c328212729d60cdabb6332ba Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 26 Jan 2022 10:33:11 +0100 Subject: [PATCH] tests: a safe node needs 'k' --- bitcoin/test/miniscript_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/test/miniscript_tests.cpp b/bitcoin/test/miniscript_tests.cpp index e3bdc2c..47a8a7c 100644 --- a/bitcoin/test/miniscript_tests.cpp +++ b/bitcoin/test/miniscript_tests.cpp @@ -648,7 +648,7 @@ BOOST_AUTO_TEST_CASE(random_tests) for (int i = 0; i < 1000; ++i) { bool safe = InsecureRandRange(20) == 0; // In 5% of the cases, generate safe top-level expressions. // Generate a random B (or Bms) node of variable complexity, which should be valid as a top-level expression. - auto node = RandomNode(safe ? "Bms"_mst : "B"_mst, 1 + InsecureRandRange(90)); + auto node = RandomNode(safe ? "Bmsk"_mst : "B"_mst, 1 + InsecureRandRange(90)); BOOST_CHECK(node && node->IsValid() && node->IsValidTopLevel()); auto script = node->ToScript(CONVERTER); BOOST_CHECK(node->ScriptSize() == script.size()); // Check consistency between script size estimation and real size