forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
90 lines (83 loc) · 2.15 KB
/
config.toml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# sample spacemesh config file
# use the config flag to start a node with a config file.
# e.g $./go-spacemesh --config ./config.toml
# cli flags will get a higher priority than configured in the file.
# Main Config
[main]
data-folder = "~/.spacemesh-data"
test-mode = false
metrics = false
metrics-port = 2020
oracle_server = "http://localhost:3030"
oracle_server_worldid = 0
genesis-time = "2019-02-13T17:02:00+00:00"
layer-duration-sec = "5"
block-cache-size = "20"
hdist = "5"
coinbase = "0x1234"
golden-atx = "0x5678"
# Node Config
[p2p]
security-param = 20
fast-sync = true
tcp-port = 7513
node-id = ""
new-node= false
dial-timeout = "1m"
conn-keepalive = "48h"
network-id = 1 # 0 - MainNet, 1 - TestNet
response-timeout = "2s"
session-timeout = "2s"
max-pending-connections = 50
target-outbound = 10
max-inbound = 100
buffer-size = 100
peers-file = "peers.json" # located under data-dir/<publickey>/<peer-file> not loaded or save if empty string is given.
# Node Swarm Config
[p2p.swarm]
bootstrap = false
bucketsize = 20 # Routing table bucket size
alpha = 3 # Routing table alpha
randcon = 2 # Number of random connections
bootnodes = [] # example : spacemesh://[email protected]:7517?disc=7517
# API Config
[api]
grpc = "node" # Only run the Node service by default
json-server = true
grpc-port = 9092
json-port = 9093
# Time sync NTP Config
[time]
max-allowed-time-drift = "10s"
ntp-queries = 5
default-timeout-latency = "10s"
ntp-servers = ["time-a-wwv.nist.gov","time-b-wwv.nist.gov","time-c-wwv.nist.gov","time.google.com","time1.google.com","time3.google.com","time4.google.com","time.asia.apple.com","time.americas.apple.com"]
# Hare Config
[hare]
hare-round-duration-sec = "5"
hare-committee-size = 800
hare-max-adversaries = 399
hare-wakeup-delta = 5
[logging]
app = "info"
p2p = "info"
post = "info"
stateDb = "info"
state = "info"
store = "info"
poetDb = "info"
meshDb = "info"
trtl = "info"
atxDb = "info"
block-eligibility = "info"
mesh = "info"
sync = "info"
block-oracle = "info"
hare-oracle = "info"
hare = "info"
block-builder = "info"
block-listener = "info"
poet = "info"
nipst = "info"
atx-builder = "info"
hare-beacon = "info"