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>
[[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
Name |
Description |
sizelimit |
The target maximum dynamic memory size, in bytes. |
pvNoSpendsRemaining |
If set, receives outpoints no longer spent by the mempool. |
Created with MrDocs