mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
add new testnet
This commit is contained in:
parent
8c9406cd35
commit
b7898a1d3b
10
README.md
10
README.md
@ -79,15 +79,15 @@ TODO users need to set up keys first?
|
|||||||
|
|
||||||
## Run a Full Node
|
## Run a Full Node
|
||||||
|
|
||||||
kvd init --name <your-name> --chain-id kava-test-1
|
kvd init --name <your-name> --chain-id kava-test-2
|
||||||
|
|
||||||
This will generate config and keys in `$HOME/.kvd` and `$HOME/.kvcli`. The default password is 'password'.
|
This will generate config and keys in `$HOME/.kvd` and `$HOME/.kvcli`. The default password is 'password'.
|
||||||
|
|
||||||
> Note: Make sure `GOBIN` is set and added to your path if you want to be able to run installed go programs from any folder.
|
> Note: Make sure `GOBIN` is set and added to your path if you want to be able to run installed go programs from any folder.
|
||||||
|
|
||||||
Copy the testnet genesis file (from https://raw.githubusercontent.com/Kava-Labs/kava/master/testnets/kava-test-1/genesis.json) into `$HOME/.kvd/config/`, replacing the existing one.
|
Copy the testnet genesis file (from https://raw.githubusercontent.com/Kava-Labs/kava/master/testnets/kava-test-2/genesis.json) into `$HOME/.kvd/config/`, replacing the existing one.
|
||||||
|
|
||||||
Add the kava node address, `0dfd43e440e34fc193ddee4ae99547184f3cb5d1@validator.connector.kava.io:26656`, to `seeds` in `$HOME/.kvd/config/config.toml`
|
Add the kava node address, `5c2bc5a95b014e4b2897791565398ee6bfd0a04a@validator.connector.kava.io:26656`, to `seeds` in `$HOME/.kvd/config/config.toml`
|
||||||
|
|
||||||
Start your full node
|
Start your full node
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ Then, your full running in the background or separate window, run:
|
|||||||
--pubkey <you validator pubkey from above> \
|
--pubkey <you validator pubkey from above> \
|
||||||
--address-validator <your address from above> \
|
--address-validator <your address from above> \
|
||||||
--moniker "<your name>" \
|
--moniker "<your name>" \
|
||||||
--chain-id kava-test-1 \
|
--chain-id kava-test-2 \
|
||||||
--from <your name>
|
--from <your name>
|
||||||
> Note You'll need to type in the default password "password"
|
> Note You'll need to type in the default password "password"
|
||||||
|
|
||||||
@ -124,6 +124,6 @@ In order to stop validating, first remove yourself as validator, then you can st
|
|||||||
kvcli stake unbond begin \
|
kvcli stake unbond begin \
|
||||||
--address-delegator <your address> \
|
--address-delegator <your address> \
|
||||||
--address-validator <your address> \
|
--address-validator <your address> \
|
||||||
--chain-id kava-test-1 \
|
--chain-id kava-test-2 \
|
||||||
--shares-percent 1 \
|
--shares-percent 1 \
|
||||||
--from <your name>
|
--from <your name>
|
||||||
|
99
testnets/kava-test-2/genesis.json
Normal file
99
testnets/kava-test-2/genesis.json
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
{
|
||||||
|
"genesis_time": "2018-09-04T01:25:04.497806902Z",
|
||||||
|
"chain_id": "kava-test-2",
|
||||||
|
"consensus_params": {
|
||||||
|
"block_size_params": {
|
||||||
|
"max_bytes": "22020096",
|
||||||
|
"max_txs": "10000",
|
||||||
|
"max_gas": "-1"
|
||||||
|
},
|
||||||
|
"tx_size_params": {
|
||||||
|
"max_bytes": "10240",
|
||||||
|
"max_gas": "-1"
|
||||||
|
},
|
||||||
|
"block_gossip_params": {
|
||||||
|
"block_part_size_bytes": "65536"
|
||||||
|
},
|
||||||
|
"evidence_params": {
|
||||||
|
"max_age": "100000"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"validators": [
|
||||||
|
{
|
||||||
|
"pub_key": {
|
||||||
|
"type": "tendermint/PubKeyEd25519",
|
||||||
|
"value": "kcaCf2NcjO5I+jYTOnTsPMxXvO5m/c6HEUBKwYlLKFo="
|
||||||
|
},
|
||||||
|
"power": "1000",
|
||||||
|
"name": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"app_hash": "",
|
||||||
|
"app_state": {
|
||||||
|
"accounts": [
|
||||||
|
{
|
||||||
|
"address": "cosmosaccaddr1f6jrk3rgt9e647mjkeqqvq0yhl7wnntm5r6tyk",
|
||||||
|
"coins": [
|
||||||
|
{
|
||||||
|
"denom": "KVA",
|
||||||
|
"amount": "99000"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stake": {
|
||||||
|
"pool": {
|
||||||
|
"loose_tokens": "100000",
|
||||||
|
"bonded_tokens": "0",
|
||||||
|
"inflation_last_time": "0",
|
||||||
|
"inflation": "7/100",
|
||||||
|
"date_last_commission_reset": "0",
|
||||||
|
"prev_bonded_shares": "0"
|
||||||
|
},
|
||||||
|
"params": {
|
||||||
|
"inflation_rate_change": "13/100",
|
||||||
|
"inflation_max": "1/5",
|
||||||
|
"inflation_min": "7/100",
|
||||||
|
"goal_bonded": "67/100",
|
||||||
|
"unbonding_time": "259200",
|
||||||
|
"max_validators": 100,
|
||||||
|
"bond_denom": "KVA"
|
||||||
|
},
|
||||||
|
"validators": [
|
||||||
|
{
|
||||||
|
"owner": "cosmosaccaddr1f6jrk3rgt9e647mjkeqqvq0yhl7wnntm5r6tyk",
|
||||||
|
"pub_key": {
|
||||||
|
"type": "tendermint/PubKeyEd25519",
|
||||||
|
"value": "kcaCf2NcjO5I+jYTOnTsPMxXvO5m/c6HEUBKwYlLKFo="
|
||||||
|
},
|
||||||
|
"revoked": false,
|
||||||
|
"status": 0,
|
||||||
|
"tokens": "1000",
|
||||||
|
"delegator_shares": "1000",
|
||||||
|
"description": {
|
||||||
|
"moniker": "kava-validator",
|
||||||
|
"identity": "",
|
||||||
|
"website": "",
|
||||||
|
"details": ""
|
||||||
|
},
|
||||||
|
"bond_height": "0",
|
||||||
|
"bond_intra_tx_counter": 0,
|
||||||
|
"proposer_reward_pool": [],
|
||||||
|
"commission": "0",
|
||||||
|
"commission_max": "0",
|
||||||
|
"commission_change_rate": "0",
|
||||||
|
"commission_change_today": "0",
|
||||||
|
"prev_bonded_tokens": "0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bonds": [
|
||||||
|
{
|
||||||
|
"delegator_addr": "cosmosaccaddr1f6jrk3rgt9e647mjkeqqvq0yhl7wnntm5r6tyk",
|
||||||
|
"validator_addr": "cosmosaccaddr1f6jrk3rgt9e647mjkeqqvq0yhl7wnntm5r6tyk",
|
||||||
|
"shares": "1000",
|
||||||
|
"height": "0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user