-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix grpc endpoint issue and update chain configuration
- Loading branch information
Showing
9 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Join a network | ||
|
||
## Initialize node configuration files | ||
```shell | ||
export TESTNET_PATH=${PWD}/testnet | ||
cd build/ | ||
./sidechaind init outsider --home ${TESTNET_PATH}/outsider | ||
``` | ||
|
||
## Get the genesis file for the existing network | ||
|
||
```shell | ||
cp ${TESTNET_PATH}/node0/config/genesis.json ${TESTNET_PATH}/outsider/config/ | ||
``` | ||
|
||
## Add at least one seed peer | ||
|
||
### Add seed peer (you need a seed peer online for this to work) | ||
|
||
```shell | ||
# export SEEDER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps | grep docker_seeder | awk '{print $1}')) | ||
sed -i "s/seeds = \"\"/seeds = \"[email protected]:26656\"/g" ${TESTNET_PATH}/outsider/config/config.toml | ||
``` | ||
|
||
### Set node to look for peers constantly | ||
|
||
```shell | ||
sed -i 's/seed_mode = false/seed_mode = true/g' ${TESTNET_PATH}/outsider/config/config.toml | ||
``` | ||
|
||
### On local networks, change addr_book_strict flag to false | ||
|
||
```shell | ||
sed -i 's/addr_book_strict = true/addr_book_strict = false/g' ${TESTNET_PATH}/outsider/config/config.toml | ||
``` | ||
|
||
## Build docker image | ||
|
||
```shell | ||
cd ../.. | ||
docker build -f .docker/Dockerfile-outsider . -t docker_outsider | ||
``` | ||
|
||
## Start the node | ||
|
||
```shell | ||
docker run --name=outsider --network=docker_default -d docker_outsider | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node0","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"side1rmad8n79ct8vzg4vk6zu7j8tu95x5lnhrtt9gn","validator_address":"sidevaloper1rmad8n79ct8vzg4vk6zu7j8tu95x5lnhm40eth","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"C9Vw0Aod/SwvfjR46G1MxUjwbdJYp6R56/tIfPBRDCI="},"value":{"denom":"uside","amount":"7000000000000"}}],"memo":"ad8f2a2815751d10ea4a621532aac6c78998f286@side_testnet_node0:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Al1brB1S5HAbH4nh54XxyqmTM8pUcaH66EE7EaHa4si/"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["bkfJxomGsXXN7f9lCHBrb63ehs/SRbYec/4D/PVAJU8s+yMSZEQSV6Dt/G0oU9IjvMMm68w2ZLh3aZGXGlQe/Q=="]} | ||
{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"node0","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"side1x2wywhhchkl6nhn24hm68n55m4jsq0lrjt4z5l","validator_address":"sidevaloper1x2wywhhchkl6nhn24hm68n55m4jsq0lr2437hm","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"jwvpLlUvxCZwOWHG68espr7oDj2sol05ZB79Xue6O88="},"value":{"denom":"uside","amount":"7000000000000"}}],"memo":"09d9fb75f1d69bff0daf77e827fad9960795ddf1@side_testnet_node0:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AwAKrTYp11GPKBo8g6XC4abLqw7S2wju6X0RQW2gok2M"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":["YKzPMDwQZkeu5Mw6AbLCk4Ls9F3XslY5DaE0rgzL0AZQAFLnOqnhg0/ViHHZYUkoZ6EL9KRyEuPouU5YsxYCdQ=="]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"7Nb6SlqeCWtLkwFiZtcJlKN27U/40V5c03UVjDcBD9a2pnPuGInLG9Zomu28dbyAtx7nQ3LRU7XKReasU5WATQ=="}} | ||
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"u2dJTo5VG43fVj+nebp0g8mGZEdgEFa2KuQIk18w7WQiDwlbZJLTIrvRN1trWj06e3qUHwnCaTx6vchH1ZNSsA=="}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"address": "DA8397B74F8FC4C253F8AEE9841FE97111F232F3", | ||
"address": "4B8E6B65A775DCCADB950B349DA0ED5B7B21AC1F", | ||
"pub_key": { | ||
"type": "tendermint/PubKeyEd25519", | ||
"value": "C9Vw0Aod/SwvfjR46G1MxUjwbdJYp6R56/tIfPBRDCI=" | ||
"value": "jwvpLlUvxCZwOWHG68espr7oDj2sol05ZB79Xue6O88=" | ||
}, | ||
"priv_key": { | ||
"type": "tendermint/PrivKeyEd25519", | ||
"value": "oz7VhVSaw1n3BC1sMl67Ld3oXG1+IF90R9b2rh291SkL1XDQCh39LC9+NHjobUzFSPBt0linpHnr+0h88FEMIg==" | ||
"value": "YYJ+g38RD5zdmpNmXX1VMCyjcBJ2XZeZXibpUWpzmliPC+kuVS/EJnA5Ycbrx6ymvugOPayiXTlkHv1e57o7zw==" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters