Skip to content

Commit

Permalink
Update main-net node setup. (#2046)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2afb412)
  • Loading branch information
vincentwschau authored and mergify[bot] committed Aug 6, 2024
1 parent 231040d commit 707cc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions protocol/testing/mainnet/mainnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ 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"

cp "$HOME/genesis.json" "$FULL_NODE_CONFIG_DIR/genesis.json"
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
Expand Down
2 changes: 1 addition & 1 deletion protocol/testing/mainnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 707cc6f

Please sign in to comment.