Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
validation_load_mempool.cpp File Reference
#include <node/mempool_persist.h>
#include <node/mempool_args.h>
#include <node/mempool_persist_args.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/fuzz/util/mempool.h>
#include <test/util/setup_common.h>
#include <test/util/txmempool.h>
#include <txmempool.h>
#include <util/check.h>
#include <util/time.h>
#include <util/translation.h>
#include <validation.h>
#include <cstdint>
#include <vector>
Include dependency graph for validation_load_mempool.cpp:

Go to the source code of this file.

Functions

void initialize_validation_load_mempool ()
 FUZZ_TARGET (validation_load_mempool,.init=initialize_validation_load_mempool)
bool DumpMempool (const CTxMemPool &pool, const fs::path &dump_path, fsbridge::FopenFn mockable_fopen_function=fsbridge::fopen, bool skip_file_commit=false)
 Dump the mempool to a file.
bool LoadMempool (CTxMemPool &pool, const fs::path &load_path, Chainstate &active_chainstate, ImportMempoolOptions &&opts)
 Import the file and attempt to add its contents to the mempool.
fs::path MempoolPath (const ArgsManager &argsman)

Function Documentation

◆ DumpMempool()

bool node::DumpMempool ( const CTxMemPool & pool,
const fs::path & dump_path,
fsbridge::FopenFn mockable_fopen_function = fsbridge::fopen,
bool skip_file_commit = false )

Dump the mempool to a file.

Definition at line 153 of file mempool_persist.cpp.

Here is the caller graph for this function:

◆ FUZZ_TARGET()

FUZZ_TARGET ( validation_load_mempool ,
. init = initialize_validation_load_mempool )

Definition at line 39 of file validation_load_mempool.cpp.

Here is the call graph for this function:

◆ initialize_validation_load_mempool()

void initialize_validation_load_mempool ( )

Definition at line 33 of file validation_load_mempool.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadMempool()

bool node::LoadMempool ( CTxMemPool & pool,
const fs::path & load_path,
Chainstate & active_chainstate,
ImportMempoolOptions && opts )

Import the file and attempt to add its contents to the mempool.

Definition at line 43 of file mempool_persist.cpp.

Here is the caller graph for this function:

◆ MempoolPath()

Definition at line 18 of file mempool_persist_args.cpp.

Here is the caller graph for this function: