Bitcoin Core 28.99.0
P2P Digital Currency
|
Public Member Functions | |
std::shared_ptr< CBlock > | Block (const uint256 &prev_hash) |
std::shared_ptr< const CBlock > | GoodBlock (const uint256 &prev_hash) |
std::shared_ptr< const CBlock > | BadBlock (const uint256 &prev_hash) |
std::shared_ptr< CBlock > | FinalizeBlock (std::shared_ptr< CBlock > pblock) |
void | BuildChain (const uint256 &root, int height, const unsigned int invalid_rate, const unsigned int branch_rate, const 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 (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
Public Member Functions inherited from ChainTestingSetup | |
ChainTestingSetup (const 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. More... | |
BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
~BasicTestingSetup () | |
Additional Inherited Members | |
Public Attributes inherited from ChainTestingSetup | |
node::CacheSizes | m_cache_sizes {} |
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. More... | |
Definition at line 25 of file validation_block_tests.cpp.
Definition at line 117 of file validation_block_tests.cpp.
void MinerTestingSetup::BuildChain | ( | const uint256 & | root, |
int | height, | ||
const unsigned int | invalid_rate, | ||
const unsigned int | branch_rate, | ||
const unsigned int | max_size, | ||
std::vector< std::shared_ptr< const CBlock > > & | blocks | ||
) |
Definition at line 133 of file validation_block_tests.cpp.
Definition at line 111 of file validation_block_tests.cpp.