forked from kimborgen/rapidchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.go
50 lines (41 loc) · 1.13 KB
/
defaults.go
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
package main
import "math"
// Default variables to be used if flag is not set
const default_function string = "node"
const default_vCPUs uint = 16
const default_instances uint = 8
const default_n uint = 128
const default_m uint = 8 // number of comimttees
const default_totalF uint = 3
const default_committeeF uint = 2
// const default_d uint = 8
const default_nUsers uint = default_n * 40
const default_totalCoins uint = default_nUsers * 100
const default_tps uint = default_m
var default_B uint = uint(math.Pow(2, 21)) // 2 mill
// var default_B uint = 2000000 // 2 mill
// TODO add these to flags and so on
const default_kappa = 128 //128
const default_phi = 0.63
const default_parity = 80 // 80?
const default_delta = 4000 //ms
const coord_aws string = "172.31.38.0"
const coord_gcloud string = "10.128.0.3"
const coord_local string = "127.0.0.1"
var coord string = coord_aws
type FlagArgs struct {
function string
vCPUs uint
instances uint
n uint
m uint
totalF uint
committeeF uint
// d uint
B uint
nUsers uint
totalCoins uint
tps uint
local bool
delta uint
}