![]() |
Bitcoin Core
25.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) |
![]() | |
RegTestingSetup () | |
![]() | |
TestingSetup (const ChainType chainType=ChainType::MAIN, const std::vector< const char * > &extra_args={}, const bool coins_db_in_memory=true, const bool block_tree_db_in_memory=true) | |
![]() | |
ChainTestingSetup (const ChainType chainType=ChainType::MAIN, const std::vector< const char * > &extra_args={}) | |
~ChainTestingSetup () | |
void | LoadVerifyActivateChainstate () |
![]() | |
BasicTestingSetup (const ChainType chainType=ChainType::MAIN, const std::vector< const char * > &extra_args={}) | |
~BasicTestingSetup () | |
Additional Inherited Members | |
![]() | |
node::CacheSizes | m_cache_sizes {} |
bool | m_coins_db_in_memory {true} |
bool | m_block_tree_db_in_memory {true} |
![]() | |
node::NodeContext | m_node |
const fs::path | m_path_root |
ArgsManager | m_args |
Definition at line 25 of file validation_block_tests.cpp.
Definition at line 115 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 130 of file validation_block_tests.cpp.
Definition at line 109 of file validation_block_tests.cpp.