Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
miner_tests.cpp File Reference
#include <chainparams.h>
#include <coins.h>
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <consensus/tx_verify.h>
#include <miner.h>
#include <policy/policy.h>
#include <script/standard.h>
#include <txmempool.h>
#include <uint256.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <util/time.h>
#include <validation.h>
#include <versionbits.h>
#include <test/util/setup_common.h>
#include <memory>
#include <boost/test/unit_test.hpp>
Include dependency graph for miner_tests.cpp:

Go to the source code of this file.

Classes

struct  miner_tests::MinerTestingSetup
 

Namespaces

 miner_tests
 

Functions

static CBlockIndex CreateBlockIndex (int nHeight, CBlockIndex *active_chain_tip) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 
 BOOST_AUTO_TEST_CASE (CreateNewBlock_validity)
 

Variables

static CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE)
 
struct {
   unsigned char   extranonce
 
   unsigned int   nonce
 
BLOCKINFO []
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( CreateNewBlock_validity  )

Definition at line 192 of file miner_tests.cpp.

Here is the call graph for this function:

◆ CreateBlockIndex()

static CBlockIndex CreateBlockIndex ( int  nHeight,
CBlockIndex active_chain_tip 
)
static

Definition at line 75 of file miner_tests.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ BLOCKINFO

constexpr { ... } BLOCKINFO

◆ blockMinFeeRate

CFeeRate blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE)
static

Definition at line 41 of file miner_tests.cpp.

◆ extranonce

unsigned char extranonce

Definition at line 53 of file miner_tests.cpp.

◆ nonce

unsigned int nonce

Definition at line 54 of file miner_tests.cpp.