Changeset View
Changeset View
Standalone View
Standalone View
src/test/transaction_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/tx_invalid.json.h" | #include <chainparams.h> // For CChainParams | ||||
#include "data/tx_valid.json.h" | #include <checkqueue.h> | ||||
#include "test/test_bitcoin.h" | #include <clientversion.h> | ||||
#include <config.h> | |||||
#include "chainparams.h" // For CChainParams | #include <consensus/tx_verify.h> | ||||
#include "checkqueue.h" | #include <consensus/validation.h> | ||||
#include "clientversion.h" | #include <core_io.h> | ||||
#include "config.h" | #include <data/tx_invalid.json.h> | ||||
#include "consensus/tx_verify.h" | #include <data/tx_valid.json.h> | ||||
#include "consensus/validation.h" | #include <key.h> | ||||
#include "core_io.h" | #include <keystore.h> | ||||
#include "key.h" | #include <policy/policy.h> | ||||
#include "keystore.h" | #include <script/script.h> | ||||
#include "policy/policy.h" | #include <script/script_error.h> | ||||
#include "script/script.h" | #include <script/sign.h> | ||||
#include "script/script_error.h" | #include <script/standard.h> | ||||
#include "script/sign.h" | #include <utilstrencodings.h> | ||||
#include "script/standard.h" | #include <validation.h> | ||||
#include "test/jsonutil.h" | |||||
#include "test/scriptflags.h" | #include <test/jsonutil.h> | ||||
#include "utilstrencodings.h" | #include <test/scriptflags.h> | ||||
#include "validation.h" | #include <test/test_bitcoin.h> | ||||
#include <map> | |||||
#include <string> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <map> | |||||
#include <string> | |||||
typedef std::vector<uint8_t> valtype; | typedef std::vector<uint8_t> valtype; | ||||
BOOST_FIXTURE_TEST_SUITE(transaction_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(transaction_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(tx_valid) { | BOOST_AUTO_TEST_CASE(tx_valid) { | ||||
// Read tests from test/data/tx_valid.json | // Read tests from test/data/tx_valid.json | ||||
// Format is an array of arrays | // Format is an array of arrays | ||||
// Inner arrays are either [ "comment" ] | // Inner arrays are either [ "comment" ] | ||||
▲ Show 20 Lines • Show All 770 Lines • Show Last 20 Lines |