node::CBlockIndexWorkComparator::operator()

Order two block indices by accumulated work (and tie-breakers).

Synopsis

Declared in <node/blockstorage.h>

bool
operator()(
    CBlockIndex const* pa,
    CBlockIndex const* pb) const;

Return Value

True if pa orders before pb.

Parameters

NameDescription
paThe first block index to compare.
pbThe second block index to compare.