// ToValidators produces a valset from the set of keys.
// The first key has weight `init` and it increases by `inc` every step
// so we can have all the same weight, or a simple linear distribution
// (should be enough for testing).
ToValidators produces a valset from the set of keys.
The first key has weight `init` and it increases by `inc` every step
so we can have all the same weight, or a simple linear distribution
(should be enough for testing).
// ToValidators produces a valset from the set of keys . // The first key has weight ` init ` and it increases by ` inc ` every step // so we can have all the same weight or a simple linear distribution // ( should be enough for testing ) .
func (pkz privKeys) ToValidators(init, inc int64) *types.ValidatorSet {
	res := make([]*types.Validator, len(pkz))
	for i, k := range pkz {
		res[i] = types.NewValidator(k.PubKey(), init+int64(i)*inc)
	}
	return types.NewValidatorSet(res)
}
func ( pkz privKeys ) ToValidators ( init , inc int64 ) * types . ValidatorSet { res := make ( [ ] * types . Validator , len ( pkz ) ) for i , k := range pkz { res [ i ] = types . NewValidator ( k . PubKey ( ) , init + int64 ( i ) * inc ) } return types . NewValidatorSet ( res ) }
ToValidators produces a valset from the set of keys.
ToValidators produces a valset from the set of keys .