|
@ -276,7 +276,12 @@ func (h *Handshaker) ReplayBlocks( |
|
|
|
|
|
|
|
|
// If appBlockHeight == 0 it means that we are at genesis and hence should send InitChain.
|
|
|
// If appBlockHeight == 0 it means that we are at genesis and hence should send InitChain.
|
|
|
if appBlockHeight == 0 { |
|
|
if appBlockHeight == 0 { |
|
|
nextVals := types.TM2PB.ValidatorUpdates(state.NextValidators) // state.Validators would work too.
|
|
|
|
|
|
|
|
|
validators := make([]*types.Validator, len(h.genDoc.Validators)) |
|
|
|
|
|
for i, val := range h.genDoc.Validators { |
|
|
|
|
|
validators[i] = types.NewValidator(val.PubKey, val.Power) |
|
|
|
|
|
} |
|
|
|
|
|
validatorSet := types.NewValidatorSet(validators) |
|
|
|
|
|
nextVals := types.TM2PB.ValidatorUpdates(validatorSet) |
|
|
csParams := types.TM2PB.ConsensusParams(h.genDoc.ConsensusParams) |
|
|
csParams := types.TM2PB.ConsensusParams(h.genDoc.ConsensusParams) |
|
|
req := abci.RequestInitChain{ |
|
|
req := abci.RequestInitChain{ |
|
|
Time: h.genDoc.GenesisTime, |
|
|
Time: h.genDoc.GenesisTime, |
|
|