Dump the mempool to a file.
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);
True on success, false if the dump could not be written.
| 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). |