github.com/karalabe/go-ethereum@v0.8.5/eth/test/tests/05.sh (about) 1 #!/bin/bash 2 3 TIMEOUT=60 4 5 cat >> $JSFILE <<EOF 6 eth.addPeer("localhost:30311"); 7 sleep(200); 8 eth.addPeer("localhost:30312"); 9 eth.addPeer("localhost:30313"); 10 eth.addPeer("localhost:30314"); 11 sleep(3000); 12 eth.export("$CHAIN_TEST"); 13 EOF 14 15 peer 11 01 -mine 16 peer 12 02 -mine 17 peer 13 03 18 peer 14 04 19 test_node $NAME "" -loglevel 5 $JSFILE 20