node::LoadMempool

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

Synopsis

Declared in <node/mempool_persist.h>

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

Return Value

True on success, false if the file could not be loaded.

Parameters

NameDescription
poolThe mempool to populate from the file.
load_pathPath of the serialized mempool to read.
active_chainstateThe active chainstate used to validate the imported transactions.
optsOptions controlling how the file is imported.