bsc-rpc.sh 478 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. DATA_DIR=/root/.ethereum
  3. account_cnt=$(ls ${DATA_DIR}/keystore | wc -l)
  4. i=1
  5. unlock_sequences="0"
  6. while [ "$i" -lt ${account_cnt} ]; do
  7. unlock_sequences="${unlock_sequences},${i}"
  8. i=$(( i + 1 ))
  9. done
  10. geth --config ${DATA_DIR}/config.toml --datadir ${DATA_DIR} --netrestrict ${CLUSTER_CIDR} \
  11. --verbosity ${VERBOSE} --nousb \
  12. --rpc --rpc.allow-unprotected-txs --txlookuplimit 15768000 \
  13. -unlock ${unlock_sequences} --password /dev/null