From d4b1fb8dea82846b75d214475eb293aaaff12908 Mon Sep 17 00:00:00 2001 From: JeromeDeschamps <jerome.deschamps@uca.fr> Date: Fri, 8 Mar 2024 10:06:45 +0100 Subject: [PATCH] Now mines for way more block, not limited in block number virtually --- scripts/run_simulation_2_nodes.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/run_simulation_2_nodes.sh b/scripts/run_simulation_2_nodes.sh index 1ddcf35..a4104d9 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 -- GitLab