diff --git a/scripts/run_simulation_2_nodes.sh b/scripts/run_simulation_2_nodes.sh index 1ddcf35d56d070f9b02dcc57f62c0943610c13ec..a4104d99348b57655f895aeb9a0d73f52f399d4e 100755 --- a/scripts/run_simulation_2_nodes.sh +++ b/scripts/run_simulation_2_nodes.sh @@ -2,11 +2,6 @@ export MINER_SIGNING_KEY=4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318; export MNEMONIC='before exclude interest push zone jealous boat ice chimney juice young side diagram silent pipe'; -# MINER_SIGNING_KEY & MNEMONIC env vars are set on workstation. -# 30 mins -#TOTAL_SIMULATION_TIME=1800; -# 12 sec - # export RPC_URL=http://ecomobicoin-1.cri.local.isima.fr:8545; # export CHAIN_ID=6363; export RPC_URL=http://127.0.0.1:8545; @@ -19,16 +14,16 @@ export CHAIN_ID=636363; echo "TOTAL_SIMULATION_TIME = $TOTAL_SIMULATION_TIME and block time = $BLOCK_TIME" # Mine -for ((i=1; i<=100; i++)) +for ((i=1; i<=10000000; i++)) do - echo "MINE $i/100"; + echo "MINE $i"; if ((i % 2 == 0)); then export RPC_URL=$RPC_URL_MINER_1; ./target/release/testnet-injector mine else export RPC_URL=$RPC_URL_MINER_2; ./target/release/testnet-injector mine fi - if [ $i -ne 100 ]; then + if [ $i -ne 10000000 ]; then sleep $BLOCK_TIME fi done