Skip to content

Commit

Permalink
update start script to get IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Dec 22, 2023
1 parent acd6fd7 commit ed85639
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion integration_tests/config/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ echo "Starting node with master key address $MASTER_KEY_ADDRESS"

cp /node/keys/$MASTER_KEY_ADDRESS/master.key /tmp

thor --config-dir=/tmp --network /node/config/genesis.json --bootnode enode://e32e5960781ce0b43d8c2952eeea4b95e286b1bb5f8c1f0c9f09983ba7141d2fdd7dfbec798aefb30dcd8c3b9b7cda8e9a94396a0192bfa54ab285c2cec515ab@10.5.0.2:55555
BOOTNODE_IP=$(ping -c 1 thor-disco | awk -F'[()]' '/PING/{print $2}')
echo $BOOTNODE_IP
thor --config-dir=/tmp --network /node/config/genesis.json --bootnode "enode://e32e5960781ce0b43d8c2952eeea4b95e286b1bb5f8c1f0c9f09983ba7141d2fdd7dfbec798aefb30dcd8c3b9b7cda8e9a94396a0192bfa54ab285c2cec515ab@$BOOTNODE_IP:55555"

0 comments on commit ed85639

Please sign in to comment.