![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <addresstype.h>#include <coins.h>#include <common/system.h>#include <consensus/consensus.h>#include <consensus/merkle.h>#include <consensus/tx_verify.h>#include <interfaces/mining.h>#include <node/miner.h>#include <policy/policy.h>#include <test/util/random.h>#include <test/util/transaction_utils.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/time.h>#include <util/translation.h>#include <validation.h>#include <versionbits.h>#include <pow.h>#include <test/util/common.h>#include <test/util/setup_common.h>#include <memory>#include <vector>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Classes | |
| struct | miner_tests::MinerTestingSetup |
Namespaces | |
| namespace | miner_tests |
Functions | |
| static std::unique_ptr< CBlockIndex > | CreateBlockIndex (int nHeight, CBlockIndex *active_chain_tip) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| std::vector< CTransactionRef > | CreateBigSigOpsCluster (const CTransactionRef &first_tx) |
| BOOST_AUTO_TEST_CASE (CreateNewBlock_validity) | |
Variables | |
| static CFeeRate | blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE) |
| struct { | |
| unsigned int extranonce | |
| unsigned int nonce | |
| } | BLOCKINFO [] |
| 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 747 of file miner_tests.cpp.
| std::vector< CTransactionRef > CreateBigSigOpsCluster | ( | const CTransactionRef & | first_tx | ) |
|
static |
Definition at line 103 of file miner_tests.cpp.
| constexpr struct { ... } BLOCKINFO |
|
static |
Definition at line 78 of file miner_tests.cpp.
| unsigned int extranonce |
Definition at line 81 of file miner_tests.cpp.
| unsigned int nonce |
Definition at line 82 of file miner_tests.cpp.