[#node-LoadMempool]
= xref:node.adoc[node]::LoadMempool
:relfileprefix: ../
:mrdocs:

Import the file and attempt to add its contents to the mempool&period;

== Synopsis

Declared in `&lt;node&sol;mempool&lowbar;persist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
LoadMempool(
    xref:CTxMemPool.adoc[CTxMemPool]& pool,
    xref:fs/path.adoc[fs::path] const& load&lowbar;path,
    xref:Chainstate.adoc[Chainstate]& active&lowbar;chainstate,
    xref:node/ImportMempoolOptions.adoc[ImportMempoolOptions]&& opts);
----

== Return Value

True on success, false if the file could not be loaded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pool*
| The mempool to populate from the file&period;
| *load&lowbar;path*
| Path of the serialized mempool to read&period;
| *active&lowbar;chainstate*
| The active chainstate used to validate the imported transactions&period;
| *opts*
| Options controlling how the file is imported&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
