Skip to content

Commit

Permalink
rename banksy to picasso
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed Nov 28, 2023
1 parent 70a898e commit 3263d79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions testnode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3263d79

Please sign in to comment.