github.com/karalabe/go-ethereum@v0.8.5/eth/test/tests/01.sh (about)

     1  #!/bin/bash
     2  
     3  TIMEOUT=5
     4  
     5  cat >> $JSFILE <<EOF
     6  eth.addPeer("localhost:30311");
     7  log("added peer localhost:30311");
     8  sleep(1000);
     9  log("added peer localhost:30312");
    10  eth.addPeer("localhost:30312");
    11  sleep(3000);
    12  eth.export("$CHAIN_TEST");
    13  EOF
    14  
    15  peer 11 01
    16  peer 12 02
    17  test_node $NAME "" -loglevel 5 $JSFILE
    18