Changeset View
Changeset View
Standalone View
Standalone View
src/test/activation_tests.cpp
// Copyright (c) 2019 The Bitcoin developers | // Copyright (c) 2019 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 <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <consensus/activation.h> | #include <consensus/activation.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(activation_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(activation_tests, BasicTestingSetup) | ||||
static void SetMTP(std::array<CBlockIndex, 12> &blocks, int64_t mtp) { | static void SetMTP(std::array<CBlockIndex, 12> &blocks, int64_t mtp) { | ||||
size_t len = blocks.size(); | size_t len = blocks.size(); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |