File tree Expand file tree Collapse file tree 5 files changed +9
-16
lines changed
Expand file tree Collapse file tree 5 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ services:
55 dockerfile : Dockerfile.bsc
66 args :
77 GIT_SOURCE : https://github.com/bnb-chain/bsc
8- GIT_CHECKOUT_BRANCH : v1.5.19- feature-SI
8+ GIT_CHECKOUT_BRANCH : v1.6.1-beta- feature-ScalableDB
99 image : bsc-geth:docker-local
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function init_validator() {
2525 echo ${validatorAddr} > ${workspace} /storage/${node_id} /address
2626
2727 # create new BLS vote address
28- expect ${workspace} /scripts/create_bls_key.sh ${workspace} /storage/${node_id}
28+ ${workspace} /scripts/create_bls_key.sh ${workspace} /storage/${node_id} ${workspace} /scripts/wallet_password.txt
2929 voteAddr=0x$( jq -r .pubkey ${workspace} /storage/${node_id} /bls/keystore/* json)
3030 echo $voteAddr
3131
Original file line number Diff line number Diff line change @@ -12,8 +12,10 @@ while [ "$i" -lt ${account_cnt} ]; do
1212 i=$(( i + 1 ))
1313done
1414
15+ HOST_IP=$( hostname -i)
16+
1517ETHSTATS=" "
1618# Use exec to handle signals
1719exec geth --config ${DATA_DIR} /config.toml --datadir ${DATA_DIR} --netrestrict ${CLUSTER_CIDR} \
1820 --state.scheme=hash --db.engine=leveldb --verbosity ${VERBOSE} --nousb ${ETHSTATS} \
19- --unlock ${unlock_sequences} --password /dev/null --ipcpath /gethipc --override.fixedturnlength 2
21+ --unlock ${unlock_sequences} --password /dev/null --ipcpath /gethipc --override.fixedturnlength 2 -nat extip: ${HOST_IP}
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ exec geth --config ${DATA_DIR}/config.toml --datadir ${DATA_DIR} --netrestrict $
1515 --verbosity ${VERBOSE} --nousb ${ETHSTATS} --state.scheme=hash --db.engine=leveldb \
1616 --bootnodes enode://${BOOTSTRAP_PUB_KEY} @${BOOTSTRAP_IP} :${BOOTSTRAP_TCP_PORT} \
1717 --mine --miner.etherbase=${VALIDATOR_ADDR} -unlock ${VALIDATOR_ADDR} --password /dev/null --blspassword /scripts/wallet_password.txt \
18- --light.serve 50 -- pprof.addr 0.0.0.0 --metrics \
18+ --pprof.addr 0.0.0.0 --metrics \
1919 --rpc.allow-unprotected-txs --history.transactions 15768000 \
20- --pprof --ipcpath /gethipc --vote --override.fixedturnlength 2
20+ --pprof --ipcpath /gethipc --vote --override.fixedturnlength 2 --nat extip: ${HOST_IP}
Original file line number Diff line number Diff line change 1- #! /usr/bin/expect
2- # 10 characters at least wanted
3- set wallet_password 1234567890
1+ #! /usr/bin/bash
42
5- set timeout 5
6- sleep 10
7- spawn geth bls account new --datadir [lindex $argv 0]
8- expect " *assword:*"
9- send " $wallet_password \r"
10- expect " *assword:*"
11- send " $wallet_password \r"
12- expect EOF
3+ geth bls account new --datadir $1 --blspassword $2
You can’t perform that action at this time.
0 commit comments