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

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