TxGraph::CompareMainOrder

Compare two transactions according to their order in the main graph. Both transactions must be in the main graph. The main graph must not be oversized.

Synopsis

Declared in <txgraph.h>

virtual
std::strong_ordering
CompareMainOrder(
    Ref const& a,
    Ref const& b) noexcept = 0;

Return Value

The ordering of a relative to b in the main graph's linearization.

Parameters

NameDescription
aFirst transaction to compare.
bSecond transaction to compare.