Browse Source

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

Closes #2634
pull/2641/head v0.26.0-dev0
Anton Kaliaev 6 years ago
committed by Ethan Buchman
parent
commit
37928cb990
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      consensus/replay.go

+ 1
- 0
consensus/replay.go View File

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


Loading…
Cancel
Save