Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | List of all members
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, 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 std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
- Public Member Functions inherited from ChainTestingSetup
 ChainTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
 ~ChainTestingSetup ()
 
- Public Member Functions inherited from BasicTestingSetup
 BasicTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={})
 
 ~BasicTestingSetup ()
 

Additional Inherited Members

- Public Attributes inherited from BasicTestingSetup
ECCVerifyHandle globalVerifyHandle
 
NodeContext m_node
 
const fs::path m_path_root
 
ArgsManager m_args
 

Detailed Description

Definition at line 23 of file validation_block_tests.cpp.

Member Function Documentation

◆ BadBlock()

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

Definition at line 113 of file validation_block_tests.cpp.

Here is the call graph for this function:

◆ Block()

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

Definition at line 61 of file validation_block_tests.cpp.

Here is the call graph for this function:

◆ BuildChain()

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

Here is the call graph for this function:

◆ FinalizeBlock()

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

Definition at line 87 of file validation_block_tests.cpp.

Here is the call graph for this function:

◆ GoodBlock()

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

Definition at line 107 of file validation_block_tests.cpp.


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