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
View File
@@ -332,6 +332,7 @@ block.ValidatorsHash == MerkleRoot(state.Validators)
MerkleRoot of the current validator set that is committing the block.
This can be used to validate the `LastCommit` included in the next block.
Note the validators are sorted by their address before computing the MerkleRoot.
### NextValidatorsHash
@@ -342,6 +343,7 @@ block.NextValidatorsHash == MerkleRoot(state.NextValidators)
MerkleRoot of the next validator set that will be the validator set that commits the next block.
This is included so that the current validator set gets a chance to sign the
next validator sets Merkle root.
Note the validators are sorted by their address before computing the MerkleRoot.
### ConsensusHash