Skip to content

Commit

Permalink
test: use full syncmode to run rpc node (bnb-chain#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysvm authored Mar 25, 2024
1 parent 38db9bf commit 79cd522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/truffle/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function generate_genesis() {
function init_genesis_data() {
node_type=$1
node_id=$2
geth --datadir ${workspace}/storage/${node_id} init --state.scheme "hash" ${workspace}/genesis/genesis.json
geth --datadir ${workspace}/storage/${node_id} init ${workspace}/genesis/genesis.json
cp ${workspace}/config/config-${node_type}.toml ${workspace}/storage/${node_id}/config.toml
sed -i -e "s/{{NetworkId}}/${BSC_CHAIN_ID}/g" ${workspace}/storage/${node_id}/config.toml
if [ "${node_id}" == "bsc-rpc" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tests/truffle/scripts/bsc-rpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ while [ "$i" -lt ${account_cnt} ]; do
done

geth --config ${DATA_DIR}/config.toml --datadir ${DATA_DIR} --netrestrict ${CLUSTER_CIDR} \
--verbosity ${VERBOSE} --nousb \
--verbosity ${VERBOSE} --nousb --syncmode "full"\
--rpc.allow-unprotected-txs --history.transactions 15768000 \
-unlock ${unlock_sequences} --password /dev/null >${DATA_DIR}/bscnode-rpc.log

0 comments on commit 79cd522

Please sign in to comment.