diff options
author | Sonic <sonic@dexon.org> | 2018-11-20 15:32:21 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:18 +0800 |
commit | 708606074cba33a91026b6378456bd6311749369 (patch) | |
tree | 47f185cdc245a7c77bc15f24032cdc8862bc3803 /test | |
parent | c5206f748e1a4a57707cffc8f867386f0d84f7be (diff) | |
download | go-tangerine-708606074cba33a91026b6378456bd6311749369.tar go-tangerine-708606074cba33a91026b6378456bd6311749369.tar.gz go-tangerine-708606074cba33a91026b6378456bd6311749369.tar.bz2 go-tangerine-708606074cba33a91026b6378456bd6311749369.tar.lz go-tangerine-708606074cba33a91026b6378456bd6311749369.tar.xz go-tangerine-708606074cba33a91026b6378456bd6311749369.tar.zst go-tangerine-708606074cba33a91026b6378456bd6311749369.zip |
test: add script to run sync node
Diffstat (limited to 'test')
-rwxr-xr-x | test/sync_test.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/sync_test.sh b/test/sync_test.sh new file mode 100755 index 000000000..702cc1e32 --- /dev/null +++ b/test/sync_test.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +GDEX=../build/bin/gdex + +logsdir=$PWD/sync-log +rm -rf $logsdir +mkdir $logsdir + +# A standalone RPC server for accepting RPC requests. +for i in $(seq 0 3); do + datadir=$PWD/Dexon.sync.$i + rm -rf $datadir + $GDEX --datadir=$datadir init genesis.json + $GDEX --testnet --verbosity=4 --gcmode=archive --datadir=$datadir \ + --rpc --rpcapi=eth,net,web3,debug --rpcaddr=0.0.0.0 \ + --port=$((30505 + $i)) \ + --rpcport=$((8663 + $i *2)) \ + --wsport=$((8664 + $i * 2)) \ + --ws --wsapi=eth,net,web3,debug --wsaddr=0.0.0.0 \ + --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" \ + > $logsdir/gdex.sync.$i.log 2>&1 & +done + +tail -f $logsdir/gdex.*.log |