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

Function chainman_reindex_chainstate_test

src/test/kernel/test_kernel.cpp:854–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854void chainman_reindex_chainstate_test(TestDirectory& test_directory)
855{
856 auto notifications{std::make_shared<TestKernelNotifications>()};
857 auto context{create_context(notifications, ChainType::MAINNET)};
858 auto chainman{create_chainman(
859 test_directory, /*reindex=*/false, /*wipe_chainstate=*/true,
860 /*block_tree_db_in_memory=*/false, /*chainstate_db_in_memory=*/false, context)};
861
862 std::vector<std::string> import_files;
863 import_files.push_back(PathToString(test_directory.m_directory / "blocks" / "blk00000.dat"));
864 BOOST_CHECK(chainman->ImportBlocks(import_files));
865}
866
867void chainman_mainnet_validation_test(TestDirectory& test_directory)
868{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 5

create_contextFunction · 0.85
create_chainmanFunction · 0.85
PathToStringFunction · 0.85
ImportBlocksMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected