 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
12 #include <validation.h>
23 static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
24 g_setup = testing_setup.get();
34 auto fuzzed_fopen = [&](
const fs::path&,
const char*) {
35 return fuzzed_file_provider.
open();
37 (void)
LoadMempool(pool, g_setup->m_node.chainman->ActiveChainstate(), fuzzed_fopen);
FUZZ_TARGET_INIT(validation_load_mempool, initialize_validation_load_mempool)
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
void initialize_validation_load_mempool()
int64_t ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
bool LoadMempool(CTxMemPool &pool, CChainState &active_chainstate, FopenFn mockable_fopen_function)
Load the mempool from disk.
FuzzedFileProvider ConsumeFile(FuzzedDataProvider &fuzzed_data_provider) noexcept
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
bool DumpMempool(const CTxMemPool &pool, FopenFn mockable_fopen_function, bool skip_file_commit)
Dump the mempool to disk.
Testing setup that configures a complete environment.