mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
Add testutil; Clean gov return codes
This commit is contained in:
17
testutil/messages.go
Normal file
17
testutil/messages.go
Normal file
@ -0,0 +1,17 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"github.com/tendermint/go-crypto"
|
||||
"github.com/tendermint/tmsp/types"
|
||||
)
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// UTILITY
|
||||
func Validator(secret string, power uint64) *types.Validator {
|
||||
privKey := crypto.GenPrivKeyEd25519FromSecret([]byte(secret))
|
||||
return &types.Validator{
|
||||
PubKey: privKey.PubKey().Bytes(),
|
||||
Power: power,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user