aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-20 15:32:21 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:57 +0800
commitf9a7f4d91d862c9543604a0d23f7dfdccf6c496b (patch)
treeadb81f259971177d35ca339b1ecc39faac941764
parent02689340e9d9949d5ce86b52c9c08bbb8a3f5956 (diff)
downloaddexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar.gz
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar.bz2
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar.lz
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar.xz
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.tar.zst
dexon-f9a7f4d91d862c9543604a0d23f7dfdccf6c496b.zip
test: add script to run sync node
-rwxr-xr-xtest/sync_test.sh24
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