2022-07-05 06:14:21 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
DATA_DIR=/root/.ethereum
|
|
|
|
|
|
|
|
account_cnt=$(ls ${DATA_DIR}/keystore | wc -l)
|
|
|
|
i=1
|
|
|
|
unlock_sequences="0"
|
|
|
|
while [ "$i" -lt ${account_cnt} ]; do
|
|
|
|
unlock_sequences="${unlock_sequences},${i}"
|
|
|
|
i=$(( i + 1 ))
|
|
|
|
done
|
|
|
|
|
|
|
|
geth --config ${DATA_DIR}/config.toml --datadir ${DATA_DIR} --netrestrict ${CLUSTER_CIDR} \
|
2024-03-25 11:49:55 +03:00
|
|
|
--verbosity ${VERBOSE} --nousb --syncmode "full"\
|
2023-11-25 15:57:23 +03:00
|
|
|
--rpc.allow-unprotected-txs --history.transactions 15768000 \
|
2023-12-06 13:32:31 +03:00
|
|
|
-unlock ${unlock_sequences} --password /dev/null >${DATA_DIR}/bscnode-rpc.log
|