gitlab.com/lightnet1/evrynet-node@v1.1.0/clear_data_test_nodes.sh (about)

     1  #!/bin/sh
     2  echo "------------Clear Data for 4 Test Nodes------------"
     3  # Kill all apps are using port: 30301, 30302, 30303, 30304
     4  sh ./stop_test_nodes.sh
     5  
     6  # Init genesis block & Run test node
     7  for i in 1 2 3 4
     8  do
     9    echo "--- Clear data for node $i ..."
    10    rm -rf ./tests/test_nodes/node"$i"/data/geth/chaindata
    11    rm -rf ./tests/test_nodes/node"$i"/data/geth/lightchaindata
    12    rm -rf ./tests/test_nodes/node"$i"/data/geth/nodes
    13    rm -r ./tests/test_nodes/node"$i"/data/geth/LOCK
    14    rm -r ./tests/test_nodes/node"$i"/data/geth/transactions.rlp
    15    rm -r ./tests/test_nodes/node"$i"/data/geth.ipc
    16    rm -r ./node"$i".log
    17  done