Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_tests.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2018 The Bitcoin developers | // Copyright (c) 2017-2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "data/script_tests.json.h" | #include <script/script.h> | ||||
#include <script/script_error.h> | |||||
#include "core_io.h" | #include <script/sighashtype.h> | ||||
#include "key.h" | #include <script/sign.h> | ||||
#include "keystore.h" | |||||
#include "rpc/server.h" | #include <core_io.h> | ||||
#include "script/script.h" | #include <data/script_tests.json.h> | ||||
#include "script/script_error.h" | #include <key.h> | ||||
#include "script/sighashtype.h" | #include <keystore.h> | ||||
#include "script/sign.h" | #include <rpc/server.h> | ||||
#include "test/jsonutil.h" | #include <util.h> | ||||
#include "test/scriptflags.h" | #include <utilstrencodings.h> | ||||
#include "test/sigutil.h" | |||||
#include "test/test_bitcoin.h" | |||||
#include "util.h" | |||||
#include "utilstrencodings.h" | |||||
#if defined(HAVE_CONSENSUS_LIB) | #if defined(HAVE_CONSENSUS_LIB) | ||||
#include "script/bitcoinconsensus.h" | #include <script/bitcoinconsensus.h> | ||||
#endif | #endif | ||||
#include <cstdint> | #include <test/jsonutil.h> | ||||
#include <fstream> | #include <test/scriptflags.h> | ||||
#include <string> | #include <test/sigutil.h> | ||||
#include <vector> | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <cstdint> | |||||
#include <fstream> | |||||
#include <string> | |||||
#include <vector> | |||||
// Uncomment if you want to output updated JSON tests. | // Uncomment if you want to output updated JSON tests. | ||||
// #define UPDATE_JSON_TESTS | // #define UPDATE_JSON_TESTS | ||||
static const uint32_t gFlags = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC; | static const uint32_t gFlags = SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC; | ||||
struct ScriptErrorDesc { | struct ScriptErrorDesc { | ||||
ScriptError_t err; | ScriptError_t err; | ||||
const char *name; | const char *name; | ||||
▲ Show 20 Lines • Show All 2,983 Lines • Show Last 20 Lines |