5#include <chainparams.h>
12#include <validation.h>
23 static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
24 g_setup = testing_setup.get();
31 AutoFile fuzzed_block_file{fuzzed_file_provider.open()};
32 if (fuzzed_block_file.IsNull()) {
35 if (fuzzed_data_provider.ConsumeBool()) {
38 std::multimap<uint256, FlatFilePos> blocks_with_unknown_parent;
39 g_setup->m_node.chainman->LoadExternalBlockFile(fuzzed_block_file, &flat_file_pos, &blocks_with_unknown_parent);
42 g_setup->m_node.chainman->LoadExternalBlockFile(fuzzed_block_file);
Non-refcounted RAII wrapper for FILE*.
void initialize_load_external_block_file()
FUZZ_TARGET(load_external_block_file,.init=initialize_load_external_block_file)
Testing setup that configures a complete environment.