CTxMemPool::CTxMemPool

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

Synopsis

Declared in <txmempool.h>

explicit
CTxMemPool(
    Options opts,
    bilingual_str& error);

Parameters

NameDescription
optsThe configuration options for the new mempool.
errorSet to a descriptive message if construction fails.