github.com/phillinzzz/newBsc@v1.1.6/tests/truffle/scripts/bsc-validator.sh (about)

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