Compare the feerate diagrams implied by the provided sorted chunks data.

Synopsis

Declared in <util/feefrac.h>

std::partial_ordering
CompareChunks(
    std::span<FeeFrac const> chunks0,
    std::span<FeeFrac const> chunks1);

Description

The implied diagram for each starts at (0, 0), then contains for each chunk the cumulative fee and size up to that chunk, and then extends infinitely to the right with a horizontal line.

The caller must guarantee that the sum of the FeeFracs in either of the chunks' data set do not overflow (so sum fees < 2ˆ63, and sum sizes < 2ˆ31).

Return Value

The ordering of the first diagram relative to the second, or std::partial_ordering::unordered if the diagrams cross.

Parameters

Name

Description

chunks0

The first sorted chunks data set.

chunks1

The second sorted chunks data set.

Created with MrDocs