diff --git a/scripts/node_start/runnode_banksyd.sh b/scripts/node_start/runnode_picassod.sh similarity index 91% rename from scripts/node_start/runnode_banksyd.sh rename to scripts/node_start/runnode_picassod.sh index 2218da305..7fd927b9e 100755 --- a/scripts/node_start/runnode_banksyd.sh +++ b/scripts/node_start/runnode_picassod.sh @@ -20,7 +20,7 @@ from_scratch () { make install # remove existing daemon. - rm -rf ~/.banksy/* + rm -rf ~/.picasso/* # juno1efd63aw40lxf3n4mhf7dzhjkr453axurv2zdzk echo "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" | centaurid keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO --recover @@ -32,7 +32,7 @@ from_scratch () { # Function updates the config based on a jq argument as a string update_test_genesis () { # update_test_genesis '.consensus_params["block"]["max_gas"]="100000000"' - cat $HOME/.banksy/config/genesis.json | jq "$1" > $HOME/.banksy/config/tmp_genesis.json && mv $HOME/.banksy/config/tmp_genesis.json $HOME/.banksy/config/genesis.json + cat $HOME/.picasso/config/genesis.json | jq "$1" > $HOME/.picasso/config/tmp_genesis.json && mv $HOME/.picasso/config/tmp_genesis.json $HOME/.picasso/config/genesis.json } # Set gas limit in genesis @@ -73,10 +73,10 @@ fi echo "Starting node..." # Opens the RPC endpoint to outside connections -sed -i '/laddr = "tcp:\/\/127.0.0.1:26657"/c\laddr = "tcp:\/\/0.0.0.0:26657"' ~/.banksy/config/config.toml -sed -i 's/cors_allowed_origins = \[\]/cors_allowed_origins = \["\*"\]/g' ~/.banksy/config/config.toml -sed -i 's/enable = false/enable = true/g' ~/.banksy/config/app.toml -sed -i '/address = "tcp:\/\/0.0.0.0:1317"/c\address = "tcp:\/\/0.0.0.0:1318"' ~/.banksy/config/app.toml +sed -i '/laddr = "tcp:\/\/127.0.0.1:26657"/c\laddr = "tcp:\/\/0.0.0.0:26657"' ~/.picasso/config/config.toml +sed -i 's/cors_allowed_origins = \[\]/cors_allowed_origins = \["\*"\]/g' ~/.picasso/config/config.toml +sed -i 's/enable = false/enable = true/g' ~/.picasso/config/app.toml +sed -i '/address = "tcp:\/\/0.0.0.0:1317"/c\address = "tcp:\/\/0.0.0.0:1318"' ~/.picasso/config/app.toml centaurid config node tcp://0.0.0.0:2241 centaurid start --pruning=nothing --minimum-gas-prices=0stake --p2p.laddr tcp://0.0.0.0:2240 --rpc.laddr tcp://0.0.0.0:2241 --grpc.address 0.0.0.0:2242 --grpc-web.address 0.0.0.0:2243 diff --git a/testnode.sh b/testnode.sh index a1bf9649d..b4c8c069c 100644 --- a/testnode.sh +++ b/testnode.sh @@ -12,7 +12,7 @@ TRACE="" command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; } # remove existing daemon -rm -rf ~/.banksy* +rm -rf ~/.picasso* centaurid config keyring-backend $KEYRING centaurid config chain-id $CHAINID @@ -40,8 +40,8 @@ fi # update request max size so that we can upload the light client # '' -e is a must have params on mac, if use linux please delete before run -sed -i'' -e 's/max_body_bytes = /max_body_bytes = 1/g' ~/.banksy/config/config.toml -cat $HOME/.banksy/config/genesis.json | jq '.app_state["gov"]["params"]["voting_period"]="45s"' > $HOME/.banksy/config/tmp_genesis.json && mv $HOME/.banksy/config/tmp_genesis.json $HOME/.banksy/config/genesis.json +sed -i'' -e 's/max_body_bytes = /max_body_bytes = 1/g' ~/.picasso/config/config.toml +cat $HOME/.picasso/config/genesis.json | jq '.app_state["gov"]["params"]["voting_period"]="45s"' > $HOME/.picasso/config/tmp_genesis.json && mv $HOME/.picasso/config/tmp_genesis.json $HOME/.picasso/config/genesis.json # Start the node (remove the --pruning=nothing flag if historical queries are not needed) centaurid start --pruning=nothing --minimum-gas-prices=0stake