From 18c72e1b2d9bf9849c1062ac022caba4fa9ecf60 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:13:17 -0400 Subject: [PATCH] Update main-net node setup. (backport #2046) (#2450) Co-authored-by: vincentwschau <99756290+vincentwschau@users.noreply.github.com> --- 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 c656fd5267..601742bb71 100755 --- a/protocol/testing/mainnet/mainnet.sh +++ b/protocol/testing/mainnet/mainnet.sh @@ -38,14 +38,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" @@ -53,7 +53,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.