Skip to content

Commit bb70e69

Browse files
committed
fixed typos (2)
1 parent 5b07d25 commit bb70e69

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

deploy/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Local test net (1 node)
33

44
```shell
5-
cd scripts
5+
cd ../scripts
66
CHAIN_ID="push_501-1" MONIKER=pn1 HOME_DIR="~/.pchain" BLOCK_TIME="1000ms" CLEAN=true ./test_node.sh
77
```
88

@@ -98,15 +98,15 @@ export CHAIN_DIR="$HOME/.pchain"
9898
# get python3 + tomlkit lib
9999
sudo apt install python3 python3-pip
100100
pip install tomlkit
101-
pyton3 -version # check python is there
101+
python3 --version # check python3.10+ is there
102102
# setup initial configs & edit toml files with proper values (check the script manually before running)
103-
~/app/updateConfigs.sh
103+
~/app/resetConfigs.sh
104104
# set moniker (this is the node name)
105-
python3 $HOME/app/toml_edit.py "$CHAIN_DIR/config/config.toml" "moniker" "pn2"
105+
python3 "$HOME/app/toml_edit.py" "$CHAIN_DIR/config/config.toml" "moniker" "pn2"
106106
# wallet @ url for the initial (seed) nodes to connect to the rest of the network
107107
# note : execute this cmd on the remote node to get it's id : pchaind tendermint show-node-id
108108
export pn1_url="bc7105d5927a44638ac2ad7f6986ec98dacc5ac6@pn1.dev.push.org:26656"
109-
python3 toml_edit.py $CHAIN_DIR/config/config.toml "p2p.persistent_peers" "$pn1_url"
109+
python3 "$HOME/app/toml_edit.py" $CHAIN_DIR/config/config.toml "p2p.persistent_peers" "$pn1_url"
110110
# copy genesis.json from the 1st node (currently all values arrive from git)
111111
cp ~/app/config-tmp/genesis.json "$CHAIN_DIR/config/"
112112

deploy/test-push-chain/scripts/resetConfigs.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,37 @@ echo "generating initial config in $CHAIN_HOME/config"
4040

4141
echo "editing generated configs"
4242
# RPC endpoint (in config.toml, under [rpc])
43-
python3 toml_edit.py "$CHAIN_HOME/config/config.toml" "rpc.laddr" "tcp://0.0.0.0:$RPC"
43+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/config.toml" "rpc.laddr" "tcp://0.0.0.0:$RPC"
4444

4545
# Set CORS allowed origins (in config.toml, under [rpc])
46-
python3 toml_edit.py "$CHAIN_HOME/config/config.toml" "rpc.cors_allowed_origins" "[\"*\"]"
46+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/config.toml" "rpc.cors_allowed_origins" "[\"*\"]"
4747

4848
# REST endpoint (in app.toml, under [api])
49-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "api.address" "tcp://0.0.0.0:$REST"
49+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "api.address" "tcp://0.0.0.0:$REST"
5050

5151
# Enable the REST API and unsafe CORS (in app.toml, under [api])
52-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "api.enable" true
53-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "api.enabled-unsafe-cors" true
52+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "api.enable" true
53+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "api.enabled-unsafe-cors" true
5454

5555
# Peer exchange settings in config.toml:
5656
# Update pprof_laddr (global key) to use the new port
57-
python3 toml_edit.py "$CHAIN_HOME/config/config.toml" "pprof_laddr" "localhost:$PROFF"
57+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/config.toml" "pprof_laddr" "localhost:$PROFF"
5858

5959
# Update the P2P listen address (in config.toml, under [p2p])
60-
python3 toml_edit.py "$CHAIN_HOME/config/config.toml" "p2p.laddr" "tcp://0.0.0.0:$P2P"
60+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/config.toml" "p2p.laddr" "tcp://0.0.0.0:$P2P"
6161

6262
# GRPC endpoints in app.toml:
6363
# Set the gRPC server address (in [grpc])
64-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "grpc.address" "0.0.0.0:$GRPC"
64+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "grpc.address" "0.0.0.0:$GRPC"
6565

6666
# Set the gRPC-web address (in [grpc-web]) – if your file uses an address key here
67-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "grpc-web.address" "0.0.0.0:$GRPC_WEB"
67+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "grpc-web.address" "0.0.0.0:$GRPC_WEB"
6868

6969
# Rosetta API endpoint (in app.toml)
70-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "rosetta.address" "0.0.0.0:$ROSETTA"
70+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "rosetta.address" "0.0.0.0:$ROSETTA"
7171

7272
# Faster blocks: update consensus timeout_commit (in config.toml, under [consensus])
73-
python3 toml_edit.py "$CHAIN_HOME/config/config.toml" "consensus.timeout_commit" "$BLOCK_TIME"
73+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/config.toml" "consensus.timeout_commit" "$BLOCK_TIME"
7474

7575
# Min gas price
76-
python3 toml_edit.py "$CHAIN_HOME/config/app.toml" "minimum-gas-prices" "0npush"
76+
python3 "$HOME/app/toml_edit.py" "$CHAIN_HOME/config/app.toml" "minimum-gas-prices" "0npush"

0 commit comments

Comments
 (0)