diff --git a/scripts/validator.sh b/scripts/validator.sh index 22e35826..bf6fd11c 100755 --- a/scripts/validator.sh +++ b/scripts/validator.sh @@ -30,14 +30,14 @@ if [ ! -f ~/.arkeo/config/genesis.json ]; then done # fetch genesis file from seed node - curl -sL "$RPC/genesis" | jq '.result.genesis' > ~/.arkeo/config/genesis.json + curl -sL "$RPC/genesis" | jq '.result.genesis' >~/.arkeo/config/genesis.json # fetch node id SEED_ID=$(curl -sL "$RPC/status" | jq -r .result.node_info.id) SEEDS="$SEED_ID@$SEED" sed -i 's/enable = false/enable = true/g' ~/.arkeo/config/app.toml - sed -i "s/seeds = \"\"/seeds = \"$PEER_ID@$SEED\"/g" ~/.arkeo/config/config.toml + sed -i "s/seeds = \"\"/seeds = \"$PEER_ID@$SEED\"/g" ~/.arkeo/config/config.toml # TODO: create this one as a validator # arkeod tx staking create-validator --amount=100000000000uarkeo --pubkey=$(arkeod tendermint show-validator) --moniker="validator 1" --from=bob --keyring-backend test --commission-rate="0.10" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="1" fi