mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
more cleanup rpc tests, testing namereg
This commit is contained in:
@@ -2,7 +2,6 @@ package rpctest
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"strconv"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -29,8 +28,7 @@ var (
|
||||
mempoolCount = 0
|
||||
|
||||
// make keys
|
||||
userPriv = "C453604BD6480D5538B4C6FD2E3E314B5BCE518D75ADE4DA3DA85AB8ADFD819606FBAC4E285285D1D91FCBC7E91C780ADA11516F67462340B3980CE2B94940E8"
|
||||
user = makeUsers(2)
|
||||
user = makeUsers(5)
|
||||
|
||||
chainID string
|
||||
|
||||
@@ -40,6 +38,7 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// deterministic account generation, synced with genesis file in config/tendermint_test/config.go
|
||||
func makeUsers(n int) []*account.PrivAccount {
|
||||
accounts := []*account.PrivAccount{}
|
||||
for i := 0; i < n; i++ {
|
||||
@@ -47,13 +46,6 @@ func makeUsers(n int) []*account.PrivAccount {
|
||||
user := account.GenPrivAccountFromSecret(secret)
|
||||
accounts = append(accounts, user)
|
||||
}
|
||||
|
||||
// include our validator
|
||||
var byteKey [64]byte
|
||||
userPrivByteSlice, _ := hex.DecodeString(userPriv)
|
||||
copy(byteKey[:], userPrivByteSlice)
|
||||
privAcc := account.GenPrivAccountFromKey(byteKey)
|
||||
accounts[0] = privAcc
|
||||
return accounts
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user