minor fixes for testnet

This commit is contained in:
rhuairahrighairigh 2018-10-03 17:01:42 -04:00
parent b73c2567fa
commit 68fa7ba3ad
5 changed files with 16 additions and 15 deletions

5
Gopkg.lock generated
View File

@ -49,7 +49,7 @@
[[projects]]
branch = "master"
digest = "1:7622ce3b0650fb5d6c8769e3229232d8604c4526aff828e6b749f3b1f4188478"
digest = "1:64eb47e3881f808c83f0a3015f626d21ccc4a4eafbc530a6454e97296ededbef"
name = "github.com/cosmos/cosmos-sdk"
packages = [
"baseapp",
@ -92,7 +92,7 @@
"x/stake/types",
]
pruneopts = "UT"
revision = "0d5f3f95664a5ef1565ec3bd67e5b6aaf46d6aeb"
revision = "4a54b3ddbde412bea07250680a09fa6cbf1c3824"
source = "github.com/kava-labs/cosmos-sdk"
[[projects]]
@ -713,6 +713,7 @@
"github.com/tendermint/tendermint/config",
"github.com/tendermint/tendermint/crypto",
"github.com/tendermint/tendermint/crypto/ed25519",
"github.com/tendermint/tendermint/libs/bech32",
"github.com/tendermint/tendermint/libs/cli",
"github.com/tendermint/tendermint/libs/common",
"github.com/tendermint/tendermint/libs/db",

View File

@ -101,11 +101,11 @@ func initTestnetCmd() *cobra.Command {
// Custom config file specifies seeds and altered ports
// Also add back validator moniker to config file
config := filepath.Join(testnetsPath, testnetVersion, configFileName)
monikerPattern, err := &regexp.Compile("name = \"[^\n]*\"") // anything that's not a new line
monikerPattern, err := regexp.Compile("moniker = \"[^\n]*\"") // anything that's not a new line
if err != nil {
return err
}
monikerReplaceString := fmt.Sprintf("name = \"%v\"", viper.GetString(flagName))
monikerReplaceString := fmt.Sprintf("moniker = \"%v\"", viper.GetString(flagName))
err = copyFile(config, filepath.Join(app.DefaultNodeHome, configPath, configFileName))
if err != nil {

View File

@ -60,7 +60,7 @@ Enter a new password for your validator key. This will generate generic config a
Setup the correct config for the current testnet
kvd init-testnet-helper --chain-id kava-test-3
kvd init-testnet --name <your-name> --chain-id kava-test-3
Start your full node

View File

@ -8,7 +8,7 @@
proxy_app = "tcp://127.0.0.1:17128"
# A custom human readable name for this node
moniker = "validator"
moniker = ""
# If this node is many blocks behind the tip of the chain, FastSync
# allows them to catchup quickly by downloading blocks in parallel
@ -87,7 +87,7 @@ laddr = "tcp://0.0.0.0:17126"
external_address = ""
# Comma separated list of seed nodes to connect to
seeds = ""
seeds = "6b1f509f5152ca08606c299c01ae284389671d8d@kava-test-3.node.connector.kava.io:17126"
# Comma separated list of nodes to keep persistent connections to
persistent_peers = ""

View File

@ -1,5 +1,5 @@
{
"genesis_time": "2018-10-02T22:07:14.081536126Z",
"genesis_time": "2018-10-03T18:25:12.233785395Z",
"chain_id": "kava-test-3",
"consensus_params": {
"block_size_params": {
@ -22,7 +22,7 @@
{
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "tvYvH9rTsYcu8Yu/D1xa/4hCC+iMu3hPmaQzjXY4ooo="
"value": "n+XBgHtHEJOQa9ufM1sj7Sacxo/W8lB3dJFmzlmmSrU="
},
"power": "1000",
"name": ""
@ -32,7 +32,7 @@
"app_state": {
"accounts": [
{
"address": "kaccaddr1hearejlx77u0uhqc2xnznnnzvyf0yctep4zq3t",
"address": "kaccaddr125e8mv0zyf0jflw4jfrz85skt7ren5terqpe8j",
"coins": [
{
"denom": "KVA",
@ -61,17 +61,17 @@
},
"validators": [
{
"owner": "kaccaddr1hearejlx77u0uhqc2xnznnnzvyf0yctep4zq3t",
"owner": "kaccaddr125e8mv0zyf0jflw4jfrz85skt7ren5terqpe8j",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "tvYvH9rTsYcu8Yu/D1xa/4hCC+iMu3hPmaQzjXY4ooo="
"value": "n+XBgHtHEJOQa9ufM1sj7Sacxo/W8lB3dJFmzlmmSrU="
},
"revoked": false,
"status": 0,
"tokens": "1000",
"delegator_shares": "1000",
"description": {
"moniker": "validator",
"moniker": "kava-validator",
"identity": "",
"website": "",
"details": ""
@ -88,8 +88,8 @@
],
"bonds": [
{
"delegator_addr": "kaccaddr1hearejlx77u0uhqc2xnznnnzvyf0yctep4zq3t",
"validator_addr": "kaccaddr1hearejlx77u0uhqc2xnznnnzvyf0yctep4zq3t",
"delegator_addr": "kaccaddr125e8mv0zyf0jflw4jfrz85skt7ren5terqpe8j",
"validator_addr": "kaccaddr125e8mv0zyf0jflw4jfrz85skt7ren5terqpe8j",
"shares": "1000",
"height": "0"
}