Changeset View
Changeset View
Standalone View
Standalone View
src/test/miner_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 "miner.h" | #include <miner.h> | ||||
#include "chainparams.h" | #include <chainparams.h> | ||||
#include "coins.h" | #include <coins.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "consensus/consensus.h" | #include <consensus/consensus.h> | ||||
#include "consensus/merkle.h" | #include <consensus/merkle.h> | ||||
#include "consensus/tx_verify.h" | #include <consensus/tx_verify.h> | ||||
#include "consensus/validation.h" | #include <consensus/validation.h> | ||||
#include "policy/policy.h" | #include <policy/policy.h> | ||||
#include "pubkey.h" | #include <pubkey.h> | ||||
#include "script/standard.h" | #include <script/standard.h> | ||||
#include "txmempool.h" | #include <txmempool.h> | ||||
#include "uint256.h" | #include <uint256.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
#include "test/test_bitcoin.h" | #include <test/test_bitcoin.h> | ||||
#include <memory> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <memory> | |||||
BOOST_FIXTURE_TEST_SUITE(miner_tests, TestingSetup) | BOOST_FIXTURE_TEST_SUITE(miner_tests, TestingSetup) | ||||
static CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE_PER_KB); | static CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE_PER_KB); | ||||
static struct { | static struct { | ||||
uint8_t extranonce; | uint8_t extranonce; | ||||
uint32_t nonce; | uint32_t nonce; | ||||
} blockinfo[] = { | } blockinfo[] = { | ||||
▲ Show 20 Lines • Show All 735 Lines • Show Last 20 Lines |