diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 13:54:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | 32e1c5ad4d6e57e4d555577fa586324f10b7319e (patch) | |
tree | cce99e6243b10c46226355fd58787f47a0b1c64a /test/run_test.sh | |
parent | 622ae7fe3ef067d4f395937a9bb0f783a7c1e6c7 (diff) | |
download | dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.gz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.bz2 dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.lz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.xz dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.tar.zst dexon-32e1c5ad4d6e57e4d555577fa586324f10b7319e.zip |
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'test/run_test.sh')
-rwxr-xr-x | test/run_test.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/run_test.sh b/test/run_test.sh index 4818f89b2..b8b893145 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -1,13 +1,17 @@ #!/bin/bash +if [ "$1" != "--testnet" ] && [ "$1" != "--taipei" ]; then + echo 'invalid network specified' + exit 1 +fi + +NETWORK="${1}" + GDEX=../build/bin/gdex # Kill all previous instances. pkill -9 -f gdex -# Start bootnode. -bootnode -nodekey bootnode.key --verbosity=9 > bootnode.log 2>&1 & - logsdir=$PWD/log-$(date '+%Y-%m-%d-%H:%M:%S') mkdir $logsdir @@ -19,7 +23,7 @@ datadir=$PWD/Dexon.rpc rm -rf $datadir $GDEX --datadir=$datadir init genesis.json $GDEX \ - --testnet \ + ${NETWORK} \ --verbosity=4 \ --gcmode=archive \ --datadir=$datadir --nodekey=testrpc.nodekey \ @@ -36,7 +40,7 @@ for i in $(seq 0 3); do rm -rf $datadir $GDEX --datadir=$datadir init genesis.json $GDEX \ - --testnet \ + ${NETWORK} \ --bp \ --verbosity=4 \ --gcmode=archive \ |