aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_test.sh
blob: 8e678fc438448da6f246bb1b5abb3300e0f57eea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

GETH=../build/bin/geth

pkill -9 -f geth

bootnode -nodekey bootnode.key --verbosity=9 > bootnode.log 2>&1 &

for i in $(seq 0 3); do
  datadir=$PWD/Dexon.$i
  rm -rf $datadir
  $GETH --datadir=$datadir init genesis.json
  $GETH --verbosity=4 --datadir=$datadir --nodekey=test$i.nodekey --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