[#node-LoadMempool] = xref:node.adoc[node]::LoadMempool :relfileprefix: ../ :mrdocs: Import the file and attempt to add its contents to the mempool. == Synopsis Declared in `<node/mempool_persist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool LoadMempool( xref:CTxMemPool.adoc[CTxMemPool]& pool, xref:fs/path.adoc[fs::path] const& load_path, xref:Chainstate.adoc[Chainstate]& active_chainstate, xref:node/ImportMempoolOptions.adoc[ImportMempoolOptions]&& opts); ---- == Return Value True on success, false if the file could not be loaded. == Parameters [cols="1,4"] |=== | Name| Description | *pool* | The mempool to populate from the file. | *load_path* | Path of the serialized mempool to read. | *active_chainstate* | The active chainstate used to validate the imported transactions. | *opts* | Options controlling how the file is imported. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#