Struct Nominator.CandidateScore

Used for comparing consensus candidate values. It contains precomputed fields to speed up sorting.

struct CandidateScore ;

Fields

NameTypeDescription
enrollments_length ulongNew enrollments length
hash geod24.bitblob.BitBlob!(64L)Hash of the consensus data
missing_validators_length ulongMPV count
total_rate AmountThe total amount of fees of the transactions in the consensus data

Methods

NameDescription
opCmp (other) Comparison function, which sorts by 1. length of missing validators (smallest first), or if it ties 2. length of enrollments (smallest last), or if it ties 3. total adjusted fee (smallest last), or if it ties 4. hash of the candidate (smallest last)