Struct Nominator.CandidateScore
Used for comparing consensus candidate values. It contains precomputed fields to speed up sorting.
struct CandidateScore
;
Fields
Name | Type | Description |
---|---|---|
enrollments_length
|
ulong | New enrollments length |
hash
|
geod24 | Hash of the consensus data |
missing_validators_length
|
ulong | MPV count |
total_rate
|
Amount | The total amount of fees of the transactions in the consensus data |
Methods
Name | Description |
---|---|
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) |