diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 13:54:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 18c57d4af12b9a532897459d8ad11579436b9bab (patch) | |
tree | c3f440ef44e1ea1da23783ef94fd05ba0cff9c4b /test/run_test.sh | |
parent | ce9dd85433e342b9ee13848414bc694921be1100 (diff) | |
download | dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar.gz dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar.bz2 dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar.lz dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar.xz dexon-18c57d4af12b9a532897459d8ad11579436b9bab.tar.zst dexon-18c57d4af12b9a532897459d8ad11579436b9bab.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 \ |