Skip to content
Snippets Groups Projects
Commit ed8fd5ce authored by Anthony GRAIGNIC's avatar Anthony GRAIGNIC
Browse files

Update scripts

parent e8bd8f8c
No related branches found
No related tags found
Loading
Pipeline #6135 passed
#!/bin/bash
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.
export CHAIN_ID=6363;
# 30 mins
TOTAL_SIMULATION_TIME=1800;
# 12 sec
BLOCK_TIME=12;
export RPC_URL=http://ecomobicoin-1.cri.local.isima.fr:8545;
# Mine on eco1 with `--max-block 0`
#
# rm -rf /home/angraign/.local/share/truite/chaindata/
# ./truite --chain-spec-file clermont-bootnode.ron --no-dns-discovery --cidr 192.168.0.0/16 --rpc-listen-address 0.0.0.0:8545 --max-block 0
# export RPC_URL=http://ecomobicoin-1.cri.local.isima.fr:8545; export CHAIN_ID=6363; ./target/release/testnet-injector mine
# ./truite --chain-spec-file clermont-bootnode.ron --no-dns-discovery --cidr 192.168.0.0/16 --rpc-listen-address 0.0.0.0:8545
#
# ./target/release/testnet-injector simulate-bx-from-csv ../movement-data/public-transport/MF_user_mobility_june-to-august-2023_mulhouse_dataset/anonymized_june-to-august-2023_mulhouse_dataset.csv $TOTAL_SIMULATION_TIME &
./target/release/testnet-injector simulate-bx-from-csv ./data/dataset-extract.csv $TOTAL_SIMULATION_TIME &
# Mine every 10 secs or number of blocks
for ((i=1; i<=100; i++))
do
echo "MINE $i/100";
./target/release/testnet-injector mine
if [ $i -ne 100 ]; then
sleep $BLOCK_TIME
fi
done
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment