Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcus-gomes-v/93b784a364b6081a5663713380222c74 to your computer and use it in GitHub Desktop.
Save marcus-gomes-v/93b784a364b6081a5663713380222c74 to your computer and use it in GitHub Desktop.
start_boot.sh
#!/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