Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
miner_tests::MinerTestingSetup Struct Reference
Inheritance diagram for miner_tests::MinerTestingSetup:
[legend]
Collaboration diagram for miner_tests::MinerTestingSetup:
[legend]

Public Member Functions

CTxMemPoolMakeMempool ()
std::unique_ptr< MiningMakeMining ()
Public Member Functions inherited from TestingSetup
 TestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
Public Member Functions inherited from ChainTestingSetup
 ChainTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~ChainTestingSetup ()
void LoadVerifyActivateChainstate ()
Public Member Functions inherited from BasicTestingSetup
void SeedRandomForTest (SeedRand seed)
 Seed the global RNG state and m_rng for testing and log the seed value.
 BasicTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~BasicTestingSetup ()

Public Attributes

void TestPackageSelection(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst) EXCLUSIVE_LOCKS_REQUIRED(void TestBasicMining(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst, int baseheight) EXCLUSIVE_LOCKS_REQUIRED(void TestPrioritisedMining(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst) EXCLUSIVE_LOCKS_REQUIRED(boo TestSequenceLocks )(const CTransaction &tx, CTxMemPool &tx_mempool) EXCLUSIVE_LOCKS_REQUIRED(
Public Attributes inherited from ChainTestingSetup
kernel::CacheSizes m_kernel_cache_sizes {node::CalculateCacheSizes(m_args).kernel}
bool m_coins_db_in_memory {true}
bool m_block_tree_db_in_memory {true}
std::function< void()> m_make_chainman {}
Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
node::NodeContext m_node
FastRandomContext m_rng
fs::path m_path_root
fs::path m_path_lock
bool m_has_custom_datadir {false}
ArgsManager m_args
 Test-specific arguments and settings.

Detailed Description

Definition at line 42 of file miner_tests.cpp.

Member Function Documentation

◆ MakeMempool()

CTxMemPool & miner_tests::MinerTestingSetup::MakeMempool ( )
inline

Definition at line 53 of file miner_tests.cpp.

Here is the call graph for this function:

◆ MakeMining()

std::unique_ptr< Mining > miner_tests::MinerTestingSetup::MakeMining ( )
inline

Definition at line 69 of file miner_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ TestSequenceLocks

void TestPackageSelection(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst) EXCLUSIVE_LOCKS_REQUIRED(void TestBasicMining(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst, int baseheight) EXCLUSIVE_LOCKS_REQUIRED(void TestPrioritisedMining(const CScript &scriptPubKey, const std::vector< CTransactionRef > &txFirst) EXCLUSIVE_LOCKS_REQUIRED(boo miner_tests::MinerTestingSetup::TestSequenceLocks) (const CTransaction &tx, CTxMemPool &tx_mempool) EXCLUSIVE_LOCKS_REQUIRED(
inline

Definition at line 46 of file miner_tests.cpp.


The documentation for this struct was generated from the following file: