node::CBlockIndexWorkComparator

Orders block indices by most accumulated work, for choosing the best tip.

Synopsis

Declared in <node/blockstorage.h>

struct CBlockIndexWorkComparator;

Type Aliases

NameDescription
is_transparent Marks the comparator as transparent so heterogeneous lookups are allowed.

Member Functions

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