TxGraph::GetWorstMainChunk

Get the last chunk in the main graph, i.e., the last chunk that would be returned by a BlockBuilder created now, together with its feerate. The chunk is returned in reverse-topological order, so every element is preceded by all its descendants. The main graph must not be oversized. If the graph is empty, {{}, FeePerWeight{}} is returned.

Synopsis

Declared in <txgraph.h>

virtual
std::pair<std::vector<Ref*>, FeePerWeight>
GetWorstMainChunk() noexcept = 0;

Return Value

The last chunk (in reverse-topological order) and its feerate.