[#CTxMemPool-TrimToSize] = xref:CTxMemPool.adoc[CTxMemPool]::TrimToSize :relfileprefix: ../ :mrdocs: Remove transactions from the mempool until its dynamic size is <= sizelimit. pvNoSpendsRemaining, if set, will be populated with the list of outpoints which are not in mempool which no longer have any spends in this mempool. == Synopsis Declared in `<txmempool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1b5a3058), requires_capability(0x7f2e2721c068), requires_capability(0x7f2e421cd778), requires_capability(0x7f2e2880c738), requires_capability(0x7f2e3212fac8), requires_capability(0x7f2e347f8158), requires_capability(0x7f2e2b05c5c8), requires_capability(0x7f2e2bee3c68)]] void TrimToSize( size_t sizelimit, std::vector<COutPoint>* pvNoSpendsRemaining = nullptr); ---- == Parameters [cols="1,4"] |=== | Name| Description | *sizelimit* | The target maximum dynamic memory size, in bytes. | *pvNoSpendsRemaining* | If set, receives outpoints no longer spent by the mempool. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#