17 #include <validation.h>
32 static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
33 g_setup = testing_setup.get();
44 auto& chainstate{
static_cast<DummyChainState&
>(g_setup->m_node.chainman->ActiveChainstate())};
47 auto fuzzed_fopen = [&](
const fs::path&,
const char*) {
48 return fuzzed_file_provider.
open();
50 (void)chainstate.LoadMempool(
MempoolPath(g_setup->m_args), fuzzed_fopen);
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
void SetMempool(CTxMemPool *mempool)
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
bool DumpMempool(const CTxMemPool &pool, const fs::path &dump_path, FopenFn mockable_fopen_function, bool skip_file_commit)
fs::path MempoolPath(const ArgsManager &argsman)
Testing setup that configures a complete environment.
int64_t ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
FuzzedFileProvider ConsumeFile(FuzzedDataProvider &fuzzed_data_provider) noexcept
CTxMemPool::Options MemPoolOptionsForTest(const NodeContext &node)
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
FUZZ_TARGET_INIT(validation_load_mempool, initialize_validation_load_mempool)
void initialize_validation_load_mempool()