Get the diagram for the current state, which must be topological. Test‐only.

Synopsis

Declared in <cluster_linearize.h>

std::vector<FeeFrac>
GetDiagram() const noexcept;

Description

The linearization produced by GetLinearization() is always at least as good (in the CompareChunks() sense) as this diagram, but may be better.

After an OptimizeStep(), the diagram will always be at least as good as before. Once OptimizeStep() returns false, the diagram will be equivalent to that produced by GetLinearization(), and optimal.

After a MinimizeStep(), the diagram cannot change anymore (in the CompareChunks() sense), but its number of segments can increase still. Once MinimizeStep() returns false, the number of chunks of the produced linearization will match the number of segments in the diagram.

Return Value

The feerates of the current chunks, sorted from highest to lowest.

Created with MrDocs