From 22220ef6d5f331c9e1f3e9487eaf07ab13693921 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 15 Jan 2021 15:50:15 +0100 Subject: [PATCH] test: Move P2WSH_OP_TRUE to shared test library --- src/Makefile.test_util.include | 1 + src/test/util/script.h | 21 +++++++++++++++++++++ src/test/validation_block_tests.cpp | 19 ++++--------------- 3 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 src/test/util/script.h diff --git a/src/Makefile.test_util.include b/src/Makefile.test_util.include index 0621da8ddf6..1abfb667a03 100644 --- a/src/Makefile.test_util.include +++ b/src/Makefile.test_util.include @@ -12,6 +12,7 @@ TEST_UTIL_H = \ test/util/logging.h \ test/util/mining.h \ test/util/net.h \ + test/util/script.h \ test/util/setup_common.h \ test/util/str.h \ test/util/transaction_utils.h \ diff --git a/src/test/util/script.h b/src/test/util/script.h new file mode 100644 index 00000000000..abd14c2067d --- /dev/null +++ b/src/test/util/script.h @@ -0,0 +1,21 @@ +// Copyright (c) 2021 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_TEST_UTIL_SCRIPT_H +#define BITCOIN_TEST_UTIL_SCRIPT_H + +#include +#include