From 79cd5222e7e40faea5b42741402ed25044aa3d47 Mon Sep 17 00:00:00 2001 From: VM <112189277+sysvm@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:49:55 +0800 Subject: [PATCH] test: use full syncmode to run rpc node (#2321) --- tests/truffle/scripts/bootstrap.sh | 2 +- tests/truffle/scripts/bsc-rpc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/truffle/scripts/bootstrap.sh b/tests/truffle/scripts/bootstrap.sh index 1528e619a..616357a84 100755 --- a/tests/truffle/scripts/bootstrap.sh +++ b/tests/truffle/scripts/bootstrap.sh @@ -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 diff --git a/tests/truffle/scripts/bsc-rpc.sh b/tests/truffle/scripts/bsc-rpc.sh index 3b175d08e..29042c134 100755 --- a/tests/truffle/scripts/bsc-rpc.sh +++ b/tests/truffle/scripts/bsc-rpc.sh @@ -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