Changeset View
Changeset View
Standalone View
Standalone View
src/test/pow_tests.cpp
// Copyright (c) 2015 The Bitcoin Core developers | // Copyright (c) 2015 The Bitcoin Core developers | ||||
// Distributed under the MIT/X11 software license, see the accompanying | // Distributed under the MIT/X11 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 <pow.h> | #include <pow.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <random.h> | #include <random.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(pow_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(pow_tests, BasicTestingSetup) | ||||
/* Test calculation of next difficulty target with no constraints applying */ | /* Test calculation of next difficulty target with no constraints applying */ | ||||
BOOST_AUTO_TEST_CASE(get_next_work) { | BOOST_AUTO_TEST_CASE(get_next_work) { | ||||
DummyConfig config(CBaseChainParams::MAIN); | DummyConfig config(CBaseChainParams::MAIN); | ||||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |