comments on validator ordering (#3452)

* comments on validator ordering

* NextValidatorsHash
This commit is contained in:
Ethan Buchman
2019-03-20 08:29:40 -04:00
committed by GitHub
parent 926127c774
commit 81b9bdf400
3 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ const (
// ValidatorSet represent a set of *Validator at a given height.
// The validators can be fetched by address or index.
// The index is in order of .Address, so the indices are fixed
// for all rounds of a given blockchain height.
// for all rounds of a given blockchain height - ie. the validators
// are sorted by their address.
// On the other hand, the .ProposerPriority of each validator and
// the designated .GetProposer() of a set changes every round,
// upon calling .IncrementProposerPriority().