[#CTxMemPool-2constructor]
= xref:CTxMemPool.adoc[CTxMemPool]::CTxMemPool
:relfileprefix: ../
:mrdocs:

Create a new CTxMemPool&period; Sanity checks will be off by default for performance, because otherwise accepting transactions becomes O(N&circ;2) where N is the number of transactions in the pool&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CTxMemPool(
    xref:CTxMemPool/Options.adoc[Options] opts,
    xref:bilingual_str.adoc[bilingual&lowbar;str]& error);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *opts*
| The configuration options for the new mempool&period;
| *error*
| Set to a descriptive message if construction fails&period;
|===


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