forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
41 lines (36 loc) · 879 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
39
40
41
# 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 = 7513
node-id = ""
new-node= false
dial-timeout = "1m"
conn-keepalive = "48h"
network-id = 1 # 0 - MainNet, 1 - TestNet
response-timeout = "2s"
# Node Swarm Config
[p2p.swarm]
bootstrap = false
bucketsize = 20 # Routing table bucket size
rtalpha = 3 # Routing table alpha
randcon = 2 # Number of random connections
bootnodes = ["0.0.0.0:7517/j7qWfWaJRVp25ZsnCu9rJ4PmhigZBtesB4YmQHqqPvtR"]
# 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"