MCPcopy Create free account
hub / github.com/ElementsProject/elements / FUZZ_TARGET_INIT

Function FUZZ_TARGET_INIT

src/test/fuzz/validation_load_mempool.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27FUZZ_TARGET_INIT(validation_load_mempool, initialize_validation_load_mempool)
28{
29 FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
30 SetMockTime(ConsumeTime(fuzzed_data_provider));
31 FuzzedFileProvider fuzzed_file_provider = ConsumeFile(fuzzed_data_provider);
32
33 CTxMemPool pool{};
34 auto fuzzed_fopen = [&](const fs::path&, const char*) {
35 return fuzzed_file_provider.open();
36 };
37 (void)LoadMempool(pool, g_setup->m_node.chainman->ActiveChainstate(), fuzzed_fopen);
38 (void)DumpMempool(pool, fuzzed_fopen, true);
39}

Callers

nothing calls this directly

Calls 8

SetMockTimeFunction · 0.85
ConsumeTimeFunction · 0.85
ConsumeFileFunction · 0.85
LoadMempoolFunction · 0.85
DumpMempoolFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected