TxGraph::Trim

Remove transactions (including their own descendants) according to a fast but best-effort strategy such that the TxGraph's cluster and size limits are respected. Applies to staging if it exists, and to main otherwise. Returns the list of all removed transactions in unspecified order. This has no effect unless the relevant graph is oversized.

Synopsis

Declared in <txgraph.h>

virtual
std::vector<Ref*>
Trim() noexcept = 0;

Return Value

The transactions removed to satisfy the limits, in unspecified order.