Changeset View
Changeset View
Standalone View
Standalone View
src/test/blockcheck_tests.cpp
// Copyright (c) 2013-2015 The Bitcoin Core developers | // Copyright (c) 2013-2015 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 "chainparams.h" | #include <chainparams.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "consensus/consensus.h" | #include <consensus/consensus.h> | ||||
#include "consensus/validation.h" | #include <consensus/validation.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
#include "test/test_bitcoin.h" | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(blockcheck_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(blockcheck_tests, BasicTestingSetup) | ||||
static void RunCheckOnBlockImpl(const GlobalConfig &config, const CBlock &block, | static void RunCheckOnBlockImpl(const GlobalConfig &config, const CBlock &block, | ||||
CValidationState &state, bool expected) { | CValidationState &state, bool expected) { | ||||
block.fChecked = false; | block.fChecked = false; | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |