Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bitcoin/test/miniscript_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down