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
Commits
ed8fd5ce
Commit
ed8fd5ce
authored
1 year ago
by
Anthony GRAIGNIC
Browse files
Options
Downloads
Patches
Plain Diff
Update scripts
parent
e8bd8f8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#6135
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/t1-1mine-with-simulation-2sync.sh
+35
-0
35 additions, 0 deletions
scripts/t1-1mine-with-simulation-2sync.sh
scripts/t2.sh
+0
-0
0 additions, 0 deletions
scripts/t2.sh
with
35 additions
and
0 deletions
scripts/t1-1mine-with-simulation-2sync.sh
0 → 100755
+
35
−
0
View file @
ed8fd5ce
#!/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
This diff is collapsed.
Click to expand it.
scripts/t
1
.sh
→
scripts/t
2
.sh
+
0
−
0
View file @
ed8fd5ce
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment