Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
ChainTestingSetup Struct Reference

Testing setup that performs all steps up until right before ChainstateManager gets initialized. More...

#include <setup_common.h>

Inheritance diagram for ChainTestingSetup:
[legend]
Collaboration diagram for ChainTestingSetup:
[legend]

Public Member Functions

 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 ()
 

Public Attributes

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...
 

Detailed Description

Testing setup that performs all steps up until right before ChainstateManager gets initialized.

Meant for testing ChainstateManager initialization behaviour.

Definition at line 105 of file setup_common.h.

Constructor & Destructor Documentation

◆ ChainTestingSetup()

ChainTestingSetup::ChainTestingSetup ( const ChainType  chainType = ChainType::MAIN,
TestOpts  opts = {} 
)
explicit

Definition at line 214 of file setup_common.cpp.

Here is the call graph for this function:

◆ ~ChainTestingSetup()

ChainTestingSetup::~ChainTestingSetup ( )

Definition at line 266 of file setup_common.cpp.

Member Function Documentation

◆ LoadVerifyActivateChainstate()

void ChainTestingSetup::LoadVerifyActivateChainstate ( )

Definition at line 282 of file setup_common.cpp.

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

Member Data Documentation

◆ m_block_tree_db_in_memory

bool ChainTestingSetup::m_block_tree_db_in_memory {true}

Definition at line 108 of file setup_common.h.

◆ m_cache_sizes

node::CacheSizes ChainTestingSetup::m_cache_sizes {}

Definition at line 106 of file setup_common.h.

◆ m_coins_db_in_memory

bool ChainTestingSetup::m_coins_db_in_memory {true}

Definition at line 107 of file setup_common.h.

◆ m_make_chainman

std::function<void()> ChainTestingSetup::m_make_chainman {}

Definition at line 109 of file setup_common.h.


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