MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ChainTestingSetup

Class ChainTestingSetup

src/test/util/setup_common.h:100–111  ·  view source on GitHub ↗

Testing setup that performs all steps up until right before * ChainstateManager gets initialized. Meant for testing ChainstateManager * initialization behaviour. */

Source from the content-addressed store, hash-verified

98 * initialization behaviour.
99 */
100struct ChainTestingSetup : public BasicTestingSetup {
101 kernel::CacheSizes m_kernel_cache_sizes{node::CalculateCacheSizes(m_args).kernel};
102 bool m_coins_db_in_memory{true};
103 bool m_block_tree_db_in_memory{true};
104 std::function<void()> m_make_chainman{};
105
106 explicit ChainTestingSetup(ChainType chainType = ChainType::MAIN, TestOpts = {});
107 ~ChainTestingSetup();
108
109 // Supplies a chainstate, if one is needed
110 void LoadVerifyActivateChainstate();
111};
112
113/** Testing setup that configures a complete environment.
114 */

Callers

nothing calls this directly

Calls 1

CalculateCacheSizesFunction · 0.85

Tested by

no test coverage detected