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.
Declared in <txmempool.h>
[[requires_capability(0x7fb95f556b88), requires_capability(0x7fb968bc8298), requires_capability(0x7fb95fdd20d8), requires_capability(0x7fb978b77498), requires_capability(0x7fb96b8fc9f8), requires_capability(0x7fb96e5c34c8), requires_capability(0x7fb97a07d4f8), requires_capability(0x7fb96be45248)]]
void
TrimToSize(
size_t sizelimit,
std::vector<COutPoint>* pvNoSpendsRemaining = nullptr);
| Name | Description |
|---|---|
| sizelimit | The target maximum dynamic memory size, in bytes. |
| pvNoSpendsRemaining | If set, receives outpoints no longer spent by the mempool. |