bsc-validator.sh 628 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. source /scripts/utils.sh
  3. DATA_DIR=/root/.ethereum
  4. wait_for_host_port ${BOOTSTRAP_HOST} ${BOOTSTRAP_TCP_PORT}
  5. BOOTSTRAP_IP=$(get_host_ip $BOOTSTRAP_HOST)
  6. VALIDATOR_ADDR=$(cat ${DATA_DIR}/address)
  7. HOST_IP=$(hostname -i)
  8. echo "validator id: ${HOST_IP}"
  9. geth --config ${DATA_DIR}/config.toml --datadir ${DATA_DIR} --netrestrict ${CLUSTER_CIDR} \
  10. --verbosity ${VERBOSE} --nousb \
  11. --bootnodes enode://${BOOTSTRAP_PUB_KEY}@${BOOTSTRAP_IP}:${BOOTSTRAP_TCP_PORT} \
  12. --mine -unlock ${VALIDATOR_ADDR} --password /dev/null \
  13. --light.serve 50 \
  14. --rpc.allow-unprotected-txs --txlookuplimit 15768000