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(0x7fd7537ba438), requires_capability(0x7fd74eec6dc8), requires_capability(0x7fd75e708418), requires_capability(0x7fd759894be8), requires_capability(0x7fd75ce06bb8), requires_capability(0x7fd759f70048), requires_capability(0x7fd75b830288), requires_capability(0x7fd73e8ae4e8)]]
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. |