Type Alias near_primitives::validator_mandates::ValidatorMandatesAssignment
source · pub type ValidatorMandatesAssignment = Vec<HashMap<ValidatorId, AssignmentWeight>>;
Expand description
Represents an assignment of ValidatorMandates
for a specific height.
Contains one map per shard, with the position in the vector corresponding to shard_id
in
0..num_shards
. Each HashMap
maps ValidatorId
s to the number of mandates they have in the
corresponding shards. A validator whose id is not in a map has not been assigned to the shard.
For example, mandates_per_shard[0][1]
maps to the [AssignmentWeights
] validator with
ValidatorId
1 holds in shard with id 0.
Aliased Type§
struct ValidatorMandatesAssignment { /* private fields */ }