Bitcoin Core  27.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, const std::vector< const char * > &extra_args={})
 
 ~ChainTestingSetup ()
 
void LoadVerifyActivateChainstate ()
 
- Public Member Functions inherited from BasicTestingSetup
 BasicTestingSetup (const ChainType chainType=ChainType::MAIN, const std::vector< const char * > &extra_args={})
 
 ~BasicTestingSetup ()
 

Public Attributes

node::CacheSizes m_cache_sizes {}
 
bool m_coins_db_in_memory {true}
 
bool m_block_tree_db_in_memory {true}
 
- Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
 
node::NodeContext m_node
 
fs::path m_path_root
 
fs::path m_path_lock
 
bool m_has_custom_datadir {false}
 
ArgsManager m_args
 

Detailed Description

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

Meant for testing ChainstateManager initialization behaviour.

Definition at line 69 of file setup_common.h.

Constructor & Destructor Documentation

◆ ChainTestingSetup()

ChainTestingSetup::ChainTestingSetup ( const ChainType  chainType = ChainType::MAIN,
const std::vector< const char * > &  extra_args = {} 
)
explicit

Definition at line 220 of file setup_common.cpp.

Here is the call graph for this function:

◆ ~ChainTestingSetup()

ChainTestingSetup::~ChainTestingSetup ( )

Definition at line 258 of file setup_common.cpp.

Member Function Documentation

◆ LoadVerifyActivateChainstate()

void ChainTestingSetup::LoadVerifyActivateChainstate ( )

Definition at line 274 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 72 of file setup_common.h.

◆ m_cache_sizes

node::CacheSizes ChainTestingSetup::m_cache_sizes {}

Definition at line 70 of file setup_common.h.

◆ m_coins_db_in_memory

bool ChainTestingSetup::m_coins_db_in_memory {true}

Definition at line 71 of file setup_common.h.


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