diff --git a/tests/test_snapshot_sync.sh b/tests/test_snapshot_sync.sh index c3c9aa56..40405119 100755 --- a/tests/test_snapshot_sync.sh +++ b/tests/test_snapshot_sync.sh @@ -70,11 +70,13 @@ toml set --toml-path $home/config/config.toml p2p.persistent_peers "$peer" echo "> Copying data folder" ./stop.sh cp $home/data/priv_validator_state.json ./ +rm -rf $home/data cp -r ${homes[-1]}/data $home/data cp ./priv_validator_state.json $home/data/ ./start.sh echo "> Starting snapshot sync node" +$CHAIN_BINARY start --home $home tmux new-session -d -s snapshot "$CHAIN_BINARY start --home $home 2>&1 | tee $log" cat $log