Browse Source

remove testutil

pull/1780/head
Ethan Buchman 7 years ago
parent
commit
b6a4ca6b3c
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      testutil/messages.go

+ 0
- 17
testutil/messages.go View File

@ -1,17 +0,0 @@
package testutil
import (
"github.com/tendermint/abci/types"
"github.com/tendermint/go-crypto"
)
//----------------------------------------
// UTILITY
func Validator(secret string, power uint64) *types.Validator {
privKey := crypto.GenPrivKeyEd25519FromSecret([]byte(secret))
return &types.Validator{
PubKey: privKey.PubKey().Bytes(),
Power: power,
}
}

Loading…
Cancel
Save