Created
March 15, 2024 17:20
-
-
Save marcus-gomes-v/93b784a364b6081a5663713380222c74 to your computer and use it in GitHub Desktop.
start_boot.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ -z "$BOOTNODE_POD_IP" ]; then | |
cat <<EOF | |
export BOOTNODE_POD_IP into the environment | |
EOF | |
exit 1 | |
fi | |
cd /etc/testnet/bootnode | |
/bootnode -genkey boot.key -writeaddress | |
echo "enode://$(/bootnode -nodekey boot.key -writeaddress)@$BOOTNODE_POD_IP:30303" > enode.address | |
/bootnode -nodekey boot.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment