diff --git a/docs/validators/state-sync.mdx b/docs/validators/state-sync.mdx index b8c63e11..0f0cf2c3 100644 --- a/docs/validators/state-sync.mdx +++ b/docs/validators/state-sync.mdx @@ -71,14 +71,14 @@ NOTE: You need to sync from LATEST_HEIGHT - 40000 to make sure that the node wil RPC_STATE_SYNC_SERVERS="[closest StateSync IP]:26657,[closest StateSync IP]:26657" SEED="5aaa51a3b9465a32f7f6c9df1d46d4bfcc16aecb@34.30.34.119:26656" EXTERNAL_IP=$(curl -4 icanhazip.com) -sed -i '' 's/enable = [^ ]*/enable = true/' ~/.zetacored/config/config.toml && -sed -i "" -e "s/-=RPC_SERVERS=-/${RPC_STATE_SYNC_SERVERS}/g" ~/.zetacored/config/config.toml && -sed -i "" -e "s/-=TRUST_HEIGHT=-/${HEIGHT}/g" ~/.zetacored/config/config.toml && -sed -i "" -e "s/-=TRUST_HASH=-/${TRUST_HASH}/g" ~/.zetacored/config/config.toml && -sed -i "" -e "s/-=MONIKER=-/${MONIKER}/g" ~/.zetacored/config/config.toml && -sed -i "" -e "s/-=external_address=-/${EXTERNAL_IP}:26657/g" ~/.zetacored/config/config.toml -sed -i "" -e "s/^seeds = .*/seeds = \"${SEED}\"/" ~/.zetacored/config/config.toml -sed -i "" -e 's/^max_num_inbound_peers = .*/max_num_inbound_peers = 120/' ~/.zetacored/config/config.toml +sed -i "" -e "s/^enable = .*/enable = \"true\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^rpc_servers = .*/rpc_servers = \"${RPC_STATE_SYNC_SERVERS}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^trust_height = .*/trust_height = \"${HEIGHT}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^trust_hash = .*/trust_hash = \"${TRUST_HASH}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^moniker = .*/moniker = \"${MONIKER}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^external_address = .*/external_address = \"${EXTERNAL_IP}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e "s/^seeds = .*/seeds = \"${SEED}\"/" ~/.zetacored/config/config.toml && +sed -i "" -e 's/^max_num_inbound_peers = .*/max_num_inbound_peers = 120/' ~/.zetacored/config/config.toml && sed -i "" -e 's/^max_num_outbound_peers = .*/max_num_outbound_peers = 60/' ~/.zetacored/config/config.toml ```