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

Public Member Functions

std::shared_ptr< CBlockBlock (const uint256 &prev_hash)
std::shared_ptr< const CBlockGoodBlock (const uint256 &prev_hash)
std::shared_ptr< const CBlockBadBlock (const uint256 &prev_hash)
std::shared_ptr< CBlockFinalizeBlock (std::shared_ptr< CBlock > pblock)
void BuildChain (const uint256 &root, int height, unsigned int invalid_rate, unsigned int branch_rate, unsigned int max_size, std::vector< std::shared_ptr< const CBlock > > &blocks)
Public Member Functions inherited from RegTestingSetup
 RegTestingSetup ()
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 ()

Additional Inherited Members

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 27 of file validation_block_tests.cpp.

Member Function Documentation

◆ BadBlock()

std::shared_ptr< const CBlock > MinerTestingSetup::BadBlock ( const uint256 & prev_hash)

Definition at line 122 of file validation_block_tests.cpp.

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

◆ Block()

std::shared_ptr< CBlock > MinerTestingSetup::Block ( const uint256 & prev_hash)

Definition at line 65 of file validation_block_tests.cpp.

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

◆ BuildChain()

void MinerTestingSetup::BuildChain ( const uint256 & root,
int height,
unsigned int invalid_rate,
unsigned int branch_rate,
unsigned int max_size,
std::vector< std::shared_ptr< const CBlock > > & blocks )

Definition at line 138 of file validation_block_tests.cpp.

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

◆ FinalizeBlock()

std::shared_ptr< CBlock > MinerTestingSetup::FinalizeBlock ( std::shared_ptr< CBlock > pblock)

Definition at line 96 of file validation_block_tests.cpp.

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

◆ GoodBlock()

std::shared_ptr< const CBlock > MinerTestingSetup::GoodBlock ( const uint256 & prev_hash)

Definition at line 116 of file validation_block_tests.cpp.

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

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