Skip to content

Commit

Permalink
fixing init_chain script to not clobber new params (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-stride committed Mar 16, 2024
1 parent 531aaa3 commit e1408d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockernet/src/init_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ for (( i=2; i <= $NUM_NODES; i++ )); do
genesis_json="${STATE}/${node_name}/config/genesis.json"

# add the main node as a persistent peer
sed -i -E "s|persistent_peers = .*|persistent_peers = \"${MAIN_NODE_ID}\"|g" $config_toml
sed -i -E "s|^persistent_peers = .*|persistent_peers = \"${MAIN_NODE_ID}\"|g" $config_toml
# copy the main node's genesis to the peer nodes to ensure they all have the same genesis
cp $MAIN_GENESIS $genesis_json

Expand All @@ -371,4 +371,4 @@ done

# Cleanup from seds
rm -rf ${MAIN_CONFIG}-E
rm -rf ${MAIN_GENESIS}-E
rm -rf ${MAIN_GENESIS}-E

0 comments on commit e1408d1

Please sign in to comment.