uint64 -> int64

This commit is contained in:
Ethan Buchman
2017-12-01 00:41:07 -05:00
parent b59fe60e65
commit 0ad7dea71f
8 changed files with 148 additions and 144 deletions

View File

@@ -11,7 +11,7 @@ import (
func RandVal(i int) *types.Validator {
pubkey := crypto.GenPrivKeyEd25519FromSecret([]byte(cmn.Fmt("test%d", i))).PubKey().Bytes()
power := cmn.RandUint16() + 1
return &types.Validator{pubkey, uint64(power)}
return &types.Validator{pubkey, int64(power)}
}
// RandVals returns a list of cnt validators for initializing