Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
miner_tests.cpp File Reference
#include <addresstype.h>
#include <chain.h>
#include <coins.h>
#include <consensus/amount.h>
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <consensus/tx_verify.h>
#include <interfaces/mining.h>
#include <interfaces/types.h>
#include <kernel/chainparams.h>
#include <node/miner.h>
#include <node/mining_args.h>
#include <node/mining_types.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <pow.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <random.h>
#include <script/script.h>
#include <serialize.h>
#include <sync.h>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <test/util/transaction_utils.h>
#include <test/util/time.h>
#include <test/util/txmempool.h>
#include <txmempool.h>
#include <uint256.h>
#include <util/check.h>
#include <util/feefrac.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <validation.h>
#include <versionbits.h>
#include <boost/test/unit_test.hpp>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <memory>
#include <optional>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
Include dependency graph for miner_tests.cpp:

Go to the source code of this file.

Classes

struct  miner_tests::MinerTestingSetup
struct  [struct].BLOCKINFO

Namespaces

namespace  miner_tests

Functions

static std::unique_ptr< CBlockIndex > CreateBlockIndex (int nHeight, CBlockIndex *active_chain_tip) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
static CMutableTransaction CreateBigSigOpsTx (const COutPoint &input, unsigned int num_outputs)
std::vector< CTransactionRef > CreateBigSigOpsCluster (const CTransactionRef &first_tx)
 BOOST_AUTO_TEST_CASE (CreateNewBlock_validity)

Variables

static CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE)
static constexpr struct  BLOCKINFO []

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( CreateNewBlock_validity )

Simple block creation, nothing special yet. If current_height is odd, block_template will have already been set at the end of the previous loop.

Definition at line 824 of file miner_tests.cpp.

Here is the call graph for this function:

◆ CreateBigSigOpsCluster()

std::vector< CTransactionRef > CreateBigSigOpsCluster ( const CTransactionRef & first_tx)

Definition at line 340 of file miner_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateBigSigOpsTx()

CMutableTransaction CreateBigSigOpsTx ( const COutPoint & input,
unsigned int num_outputs )
static

Definition at line 326 of file miner_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateBlockIndex()

std::unique_ptr< CBlockIndex > CreateBlockIndex ( int nHeight,
CBlockIndex * active_chain_tip )
static

Definition at line 122 of file miner_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BLOCKINFO

constexpr struct [struct].BLOCKINFO BLOCKINFO

◆ blockMinFeeRate

CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE)
static

Definition at line 97 of file miner_tests.cpp.