forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
38 lines (33 loc) · 778 Bytes
/
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
# sample spacemesh config file
# use the config flag to start a node with a config file.
# e.g $./go-spacemash -config ./config.toml
# Main Config
[main]
data-folder = "~/.spacemesh-data"
# Node Config
[p2p]
security-param = 20
fast-sync = true
tcp-port = 7512
node-id = ""
dial-timeout = "1m"
conn-keepalive = "48h"
network-id = 1 # 0 - MainNet, 1 - TestNet
# Node Swarm Config
[swarm]
swarm-bootstrap = false
swarm-rtbs = 20 # Routing table bucket size
swarm-rtalpha = 3 # Routing table alpha
swarm-randcon = 2 # Number of random connections
# API Config
[api]
grpc-server = false
json-server = false
grpc-port = 9091
json-port = 9090
# Time sync NTP Config
[ntp]
max-allowed-time-drift = "10s"
ntp-queries = 5
default-timeout-latency = "10s"
refresh-ntp-interval = "30m"