CTxMemPool::Expire

Expire all transaction (and their dependencies) in the mempool older than time. Return the number of removed transactions.

Synopsis

Declared in <txmempool.h>

[[requires_capability(0x7f95135d31e8), requires_capability(0x7f9501b125c8), requires_capability(0x7f950ec787b8), requires_capability(0x7f9525ea8508), requires_capability(0x7f9515097c48), requires_capability(0x7f950826bee8), requires_capability(0x7f94f856f5f8), requires_capability(0x7f9513c597e8)]]
int
Expire(std::chrono::seconds time);

Return Value

The number of removed transactions.

Parameters

NameDescription
timeTransactions that entered the mempool before this time are expired.