aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-20 12:57:05 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3 (patch)
tree0874ec5147d0a0cce90730bfa4d1b19af4d1ffef
parent34894b1770c23bbff86559cbbdc0f3b171391683 (diff)
downloadgo-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar.gz
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar.bz2
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar.lz
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar.xz
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.tar.zst
go-tangerine-0d3c3779ef3c03ee3af99eaed7abdc6bac31f7b3.zip
test: update run_test.sh
-rw-r--r--test/keygen.go8
-rwxr-xr-xtest/run_test.sh2
2 files changed, 8 insertions, 2 deletions
diff --git a/test/keygen.go b/test/keygen.go
index 986342368..5397bc269 100644
--- a/test/keygen.go
+++ b/test/keygen.go
@@ -3,12 +3,18 @@ package main
import (
"encoding/hex"
"fmt"
+ "os"
+ "strconv"
"github.com/dexon-foundation/dexon/crypto"
)
func main() {
- for i := 0; i < 4; i++ {
+ count, err := strconv.Atoi(os.Args[1])
+ if err != nil {
+ panic(err)
+ }
+ for i := 0; i < count; i++ {
privKey, err := crypto.GenerateKey()
if err != nil {
panic(err)
diff --git a/test/run_test.sh b/test/run_test.sh
index b38ca4da6..4d9d99947 100755
--- a/test/run_test.sh
+++ b/test/run_test.sh
@@ -11,7 +11,7 @@ for i in $(seq 0 3); do
rm -rf $datadir
$GETH --datadir=$datadir init genesis.json
cp test$i.nodekey $datadir/geth/nodekey
- $GETH --verbosity=4 --datadir=$datadir --port=$((28000 + $i)) --rpc --rpcaddr 127.0.0.1 --rpcport=$((8545 + $i)) --rpcapi=eth,net,web3,debug --rpcvhosts='' --rpccorsdomain="https://www.myetherwallet.com" > geth.$i.log 2>&1 &
+ $GETH --verbosity=4 --datadir=$datadir --port=$((28000 + $i)) --rpc --rpcaddr 127.0.0.1 --rpcport=$((8545 + $i)) --rpcapi=eth,net,web3,debug --rpcvhosts='*' --rpccorsdomain="http://localhost:8000,https://www.myetherwallet.com" > geth.$i.log 2>&1 &
done
tail -f geth.*.log