From 77712ca934162eb6f9f904fb1ef1a68c88ffa411 Mon Sep 17 00:00:00 2001 From: Vincent Chau <99756290+vincentwschau@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:10:32 -0400 Subject: [PATCH] Update main-net node setup. --- protocol/testing/mainnet/mainnet.sh | 6 +++--- protocol/testing/mainnet/start.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/testing/mainnet/mainnet.sh b/protocol/testing/mainnet/mainnet.sh index 347030bb4f..3bdf26bc9a 100755 --- a/protocol/testing/mainnet/mainnet.sh +++ b/protocol/testing/mainnet/mainnet.sh @@ -46,14 +46,14 @@ set_cosmovisor_binary_permissions() { create_full_nodes() { # Create directories for full-nodes to use. - for i in $(seq 1 $LAST_FULL_NODE_INDEX); do + for i in $(seq 0 $LAST_FULL_NODE_INDEX); do FULL_NODE_HOME_DIR="$HOME/chain/.full-node-$i" FULL_NODE_CONFIG_DIR="$FULL_NODE_HOME_DIR/config" dydxprotocold init "full-node" -o --chain-id=$CHAIN_ID --home "$FULL_NODE_HOME_DIR" done # Copy the genesis file to the full-node directories. - for i in $(seq 1 $LAST_FULL_NODE_INDEX); do + for i in $(seq 0 $LAST_FULL_NODE_INDEX); do FULL_NODE_HOME_DIR="$HOME/chain/.full-node-$i" FULL_NODE_CONFIG_DIR="$FULL_NODE_HOME_DIR/config" @@ -61,7 +61,7 @@ create_full_nodes() { done # Set up CosmosVisor for full-nodes. - for i in $(seq 1 $LAST_FULL_NODE_INDEX); do + for i in $(seq 0 $LAST_FULL_NODE_INDEX); do FULL_NODE_HOME_DIR="$HOME/chain/.full-node-$i" # DAEMON_NAME is the name of the binary. export DAEMON_NAME=dydxprotocold diff --git a/protocol/testing/mainnet/start.sh b/protocol/testing/mainnet/start.sh index d4468d0687..d783fa512e 100755 --- a/protocol/testing/mainnet/start.sh +++ b/protocol/testing/mainnet/start.sh @@ -9,7 +9,7 @@ set -eo pipefail source "./vars.sh" # Set up CosmosVisor for full-nodes. -for i in $(seq 1 $LAST_FULL_NODE_INDEX); do +for i in $(seq 0 $LAST_FULL_NODE_INDEX); do FULL_NODE_HOME_DIR="$HOME/chain/.full-node-$i" # Copy binaries for `cosmovisor` from the docker image into the home directory. # Work-around to ensure docker volume contains the same binaries as the git repo.