5#include <chainparams.h>
13#include <validation.h>
34 if (fuzzed_block_file.
IsNull()) {
40 std::multimap<uint256, FlatFilePos> blocks_with_unknown_parent;
41 g_setup->m_node.chainman->LoadExternalBlockFile(fuzzed_block_file, &flat_file_pos, &blocks_with_unknown_parent);
44 g_setup->m_node.chainman->LoadExternalBlockFile(fuzzed_block_file);
const TestingSetup * g_setup
Non-refcounted RAII wrapper for FILE*.
bool IsNull() const
Return true if the wrapped FILE* is nullptr, false otherwise.
void initialize_load_external_block_file()
std::unique_ptr< T > MakeNoLogFileContext(const ChainType chain_type=ChainType::REGTEST, TestOpts opts={})
Make a test setup that has disk access to the debug.log file disabled.
Testing setup that configures a complete environment.
NodeSeconds ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.