Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Testnet Injector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EcoMobiCoin
Testnet Injector
Merge requests
!15
update dockerfile to remove optimisation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
update dockerfile to remove optimisation
modify_docker_image
into
main
Overview
2
Commits
9
Pipelines
8
Changes
8
All threads resolved!
Hide all comments
Merged
Jerome DESCHAMPS
requested to merge
modify_docker_image
into
main
1 year ago
Overview
2
Commits
9
Pipelines
8
Changes
8
All threads resolved!
Hide all comments
Expand
Necessary to keep scripts repository
0
0
Merge request reports
Compare
main
version 7
326a159f
1 year ago
version 6
c5beff30
1 year ago
version 5
11c339a8
1 year ago
version 4
6db1fe68
1 year ago
version 3
3e9c802c
1 year ago
version 2
a3b291a9
1 year ago
version 1
608d1873
1 year ago
main (base)
and
latest version
latest version
942502df
9 commits,
1 year ago
version 7
326a159f
7 commits,
1 year ago
version 6
c5beff30
6 commits,
1 year ago
version 5
11c339a8
5 commits,
1 year ago
version 4
6db1fe68
4 commits,
1 year ago
version 3
3e9c802c
3 commits,
1 year ago
version 2
a3b291a9
2 commits,
1 year ago
version 1
608d1873
1 commit,
1 year ago
8 files
+
58
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
scripts/run_simulation_2_nodes.sh
0 → 100755
+
36
−
0
Options
#!/bin/sh
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
;
export
CHAIN_ID
=
636363
;
# ./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 &
# Send BX
./target/release/testnet-injector simulate-bx-from-csv ./data/anonymized_june-to-november-2023_france_dataset.csv
$TOTAL_SIMULATION_TIME
&
echo
"TOTAL_SIMULATION_TIME =
$TOTAL_SIMULATION_TIME
and block time =
$BLOCK_TIME
"
# Mine
for
((
i
=
1
;
i<
=
100
;
i++
))
do
echo
"MINE
$i
/100"
;
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
sleep
$BLOCK_TIME
fi
done
Loading