2015-01-05 18:10:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
TIMEOUT=6
|
|
|
|
|
|
|
|
cat >> $JSFILE <<EOF
|
|
|
|
eth.addPeer("localhost:30311");
|
|
|
|
sleep(200);
|
|
|
|
eth.addPeer("localhost:30312");
|
|
|
|
sleep(3000);
|
|
|
|
eth.export("$CHAIN_TEST");
|
|
|
|
EOF
|
|
|
|
|
|
|
|
peer 11 01
|
|
|
|
peer 12 02
|
2015-01-09 07:04:32 +02:00
|
|
|
P12ID=$PID
|
2015-01-05 18:10:42 +02:00
|
|
|
test_node $NAME "" -loglevel 5 $JSFILE
|
2015-01-09 07:04:32 +02:00
|
|
|
sleep 0.3
|
|
|
|
kill $P12ID
|
2015-01-05 18:10:42 +02:00
|
|
|
|