-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathglobal_config.sh
67 lines (58 loc) · 2.39 KB
/
global_config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
USERNAME=`whoami`
mailto='[email protected]'
DOCKERBASE='/home/volker/Documents/mygithub-software/AB-interface/Blockchain-module'
TEMPLATE='./experiments/epuck_EC_locale_template.argos'
CONTRACT="${DOCKERBASE}/geth/shared/Estimation.sol"
SCTEMPLATE="${DOCKERBASE}/geth/shared/Estimation.sol_template"
OUTFILE="./experiments/epuck.argos"
SCOUTFILE="${DOCKERBASE}/geth/shared/Estimation.sol"
BASEDIR="$PWD/controllers/epuck_environment_classification/"
BLOCKCHAINPATH="$HOME/eth_data_para/data" # always without '/' at the end!!
DECISIONRULE=3
NUMROBOTS=(4)
REPETITIONS=10
TAUS=(1000000)
LENGTHOFRUNS=(1000)
MIXINGS=1
VISUALIZATION=visualization #visualization or none
ARENASIZEDIM="1.0"
CELLDIMENSION="0.1"
# Cell dimension should be ARENASIZE / 20 for 400 tiles
# The cell dimension can be changed, this will result in more or less tiles
# HOWEVER!!: Then you also have to change header file value for NUM_CELLS
ARENASIZEPLUSLARGE=`echo "scale=4; $ARENASIZEDIM + 0.1" | bc`
ARENASIZEPLUSSMALL=`echo "scale=4; $ARENASIZEDIM + 0.0075" | bc`
ARENASIZEHALF=`echo "scale=4; $ARENASIZEDIM / 2" | bc`
ARENASIZEMINUS=`echo "scale=4; $ARENASIZEDIM - 0.1" | bc`
echo ${ARENASIZEPLUSLARGE}
echo ${ARENASIZEPLUSSMALL}
echo ${ARENASIZEHALF}
echo ${ARENASIZEMINUS}
MININGDIFF=1000000
USEMULTIPLENODES=true
USEBACKGROUNDGETHCALLS=true
MAPPINGPATH="$HOME/Documents/blockchain-journal-bc/experiments/config.txt"
CHANGEDIFFIULTY=""
NUMRUNS=1
THREADS=1
NOW=`date +"%d-%m-%Y"`
# The miner node is the first of the used nodes
USECLASSICALAPPROACH=false
DISTRIBUTEETHER="false"
CONTAINERNAMEBASE="ethereum_eth."
CONTRACTADDRESS="${DOCKERBASE}/geth/deployed_contract/contractAddress.txt"
CONTRACTABI="${DOCKERBASE}/geth/deployed_contract/contractABI.abi"
MAXFLOODING=20
REALTIME="true"
# 1: Always send 0.0 as value
# 2: Always send 1.0 as value
# 3: Send 0.0 with probability 0.5, send 1.0 else
# 4: Send a random number between 0.0 and 1.0
# 5: Send the true value but apply Gaussian noise to the sensor readings
# 11: Perform a Sybil and flooding attack, always send 0.0 as value
# 12: Perform a Sybil and flooding attack, always send 1.0 as value
# 13: Perform a Sybil and flooding attack, send 0.0 with probabiity 0.5, send 1.0 else
# 14: Perform a Sybil and flooding attack, send a random number between 0.0 and 1.0
# 15: Perform a Sybil and flooding attack, send the true value but with some Gaussian noise
# 20: Perform a jamming attack