Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_standard_tests.cpp
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core 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 <key.h> | #include <key.h> | ||||
#include <keystore.h> | #include <keystore.h> | ||||
#include <script/ismine.h> | #include <script/ismine.h> | ||||
#include <script/script.h> | #include <script/script.h> | ||||
#include <script/script_error.h> | #include <script/script_error.h> | ||||
#include <script/standard.h> | #include <script/standard.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
// Append given push onto a script, using specific opcode (not necessarily | // Append given push onto a script, using specific opcode (not necessarily | ||||
// the minimal one, but must be able to contain the given data.) | // the minimal one, but must be able to contain the given data.) | ||||
void AppendPush(CScript &script, opcodetype opcode, | void AppendPush(CScript &script, opcodetype opcode, | ||||
const std::vector<uint8_t> &b) { | const std::vector<uint8_t> &b) { | ||||
assert(opcode <= OP_PUSHDATA4); | assert(opcode <= OP_PUSHDATA4); | ||||
▲ Show 20 Lines • Show All 625 Lines • Show Last 20 Lines |