Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main-net node setup. (backport #2046) #2450

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions protocol/testing/mainnet/mainnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,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
Loading