Testing setup that performs all steps up until right before * ChainstateManager gets initialized. Meant for testing ChainstateManager * initialization behaviour. */
| 98 | * initialization behaviour. |
| 99 | */ |
| 100 | struct 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 | */ |
nothing calls this directly
no test coverage detected