set next validators along with validators while replay (#2637)

Closes #2634
This commit is contained in:
Anton Kaliaev 2018-10-15 06:28:41 +04:00 committed by Ethan Buchman
parent 0790223518
commit 37928cb990
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ func (h *Handshaker) ReplayBlocks(state sm.State, appHash []byte, appBlockHeight
return nil, err
}
state.Validators = types.NewValidatorSet(vals)
state.NextValidators = types.NewValidatorSet(vals)
}
if res.ConsensusParams != nil {
state.ConsensusParams = types.PB2TM.ConsensusParams(res.ConsensusParams)