IncrementAccum upon RPC /validators; Sanity checks and comments (#2808)

This commit is contained in:
Jae Kwon
2018-11-20 22:43:02 -08:00
committed by Anton Kaliaev
parent 1610a05cbd
commit 42592d9ae0
6 changed files with 60 additions and 10 deletions

View File

@@ -64,7 +64,8 @@ type State struct {
// Validators are persisted to the database separately every time they change,
// so we can query for historical validator sets.
// Note that if s.LastBlockHeight causes a valset change,
// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1
// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
// Extra +1 due to nextValSet delay.
NextValidators *types.ValidatorSet
Validators *types.ValidatorSet
LastValidators *types.ValidatorSet