11# RUN THIS LINE BY LINE; COMMENTING OUT EVERYTHING ELSE !!!
22
3-
43# OPTIONAL STEP: create keys (write down the memo words)(you need this only once per environment)
5- appd keys add user1
6- appd keys add user2
4+ pushchaind keys add user1
5+ pushchaind keys add user2
76
8- # # make 3 folders with all configs and genesis files and validator keys
7+ # # make 3 folders with all configs and genesis files and validator keys for
8+ # a testnetwork (tn) of 3 nodes: pushnode1(.tn/pn1), .tn/pn2, .tn/pn3
99pushchaind init pn1 --home ~ /.tn/pn1 --chain-id test-push-chain
1010pushchaind init pn2 --home ~ /.tn/pn2 --chain-id test-push-chain
1111pushchaind init pn3 --home ~ /.tn/pn3 --chain-id test-push-chain
@@ -45,23 +45,23 @@ cp ~/.tn/pn1/config/app.toml ~/.tn/pn3/config/app.toml
4545
4646
4747# build config/config.toml
48- export pn1id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn1)
49- export pn1url =" $pn1id @pn1.dev.push.org:26657 "
48+ export pn1_id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn1)
49+ export pn1_url =" $pn1_id @pn1.dev.push.org:26656 "
5050
51- export pn2id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn2)
52- export pn2url =" $pn2id @pn2.dev.push.org:26657 "
51+ export pn2_id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn2)
52+ export pn2_url =" $pn2_id @pn2.dev.push.org:26656 "
5353
54- export pn3id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn3)
55- export pn3url =" $pn3id @pn3.dev.push.org:26657 "
54+ export pn3_id =$( pushchaind tendermint show-node-id --home ~ /.tn/pn3)
55+ export pn3_url =" $pn3_id @pn3.dev.push.org:26656 "
5656
57- export pn1_peers=" \" $pn2url , $pn3url \" "
57+ export pn1_peers=" \" $pn2_url , $pn3_url \" "
5858sed -i ' ' " s/persistent_peers = \"\" /persistent_peers = $pn1_peers /g" ~ /.tn/pn1/config/config.toml
5959grep -i persistent_peers ~ /.tn/pn1/config/config.toml
6060
61- export pn2_peers=" \" $pn1url , $pn3url \" "
61+ export pn2_peers=" \" $pn1_url , $pn3_url \" "
6262sed -i ' ' " s/persistent_peers = \"\" /persistent_peers = $pn2_peers /g" ~ /.tn/pn2/config/config.toml
6363grep -i persistent_peers ~ /.tn/pn2/config/config.toml
6464
65- export pn3_peers=" \" $pn1url , $pn2url \" "
65+ export pn3_peers=" \" $pn1_url , $pn2_url \" "
6666sed -i ' ' " s/persistent_peers = \"\" /persistent_peers = $pn3_peers /g" ~ /.tn/pn3/config/config.toml
6767grep -i " persistent_peers =" ~ /.tn/pn3/config/config.toml
0 commit comments