Dump the mempool to a file.
Synopsis
Declared in <node/mempool_persist.h>
bool
DumpMempool(
CTxMemPool const& pool,
fs::path const& dump_path,
fsbridge::FopenFn mockable_fopen_function = fsbridge::fopen,
bool skip_file_commit = false);
Return Value
True on success, false if the dump could not be written.
Parameters
Name |
Description |
pool |
The mempool whose contents are written out. |
dump_path |
Destination path for the serialized mempool. |
mockable_fopen_function |
File‐open function, overridable for testing. |
skip_file_commit |
If true, skip the fsync/commit step (used in tests). |
Created with MrDocs