protoc and update everything

This commit is contained in:
Ethan Buchman
2018-05-23 22:20:35 -04:00
parent 8bb04d7ef7
commit 3dbdc87edb
13 changed files with 263 additions and 911 deletions

View File

@ -8,9 +8,12 @@ import (
// RandVal creates one random validator, with a key derived
// from the input value
func RandVal(i int) types.Validator {
pubkey := cmn.RandBytes(33)
addr := cmn.RandBytes(20)
pubkey := cmn.RandBytes(32)
power := cmn.RandUint16() + 1
return types.Validator{pubkey, int64(power)}
v := types.Ed25519Validator(pubkey, int64(power))
v.Address = addr
return v
}
// RandVals returns a list of cnt validators for initializing