This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
/
reference.conf
200 lines (150 loc) · 5.83 KB
/
reference.conf
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
scorex {
# Execution context for all tasks, except of akka actors.
executionContext {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
fixed-pool-size = 16
}
throughput = 1
}
# Node data directory
dataDir = ${user.home}"/scorex"
# Node logs directory
logDir = ${scorex.dataDir}"/log"
# Node's REST API settings
restApi {
# Network address to bind to
bindAddress = "127.0.0.1:6886"
# Hash of API key string
#apiKeyHash = ""
# Enable/disable CORS support.
# This is an optional param. It would allow cors in case if this setting is set.
# If this setting will be omitted cors will be prohibited.
corsAllowedOrigin = "*"
# request processing timeout
timeout = 5s
}
# P2P Network settings
network {
#####################################################
# Node information to be declared during handshake #
#####################################################
# Node name to send during handshake
nodeName = "My node"
# Network version send in handshake
appVersion = 0.0.1
# Network agent name. May contain information about client code
# stack, starting from core code-base up to the end graphical interface.
# Basic format is `/Name:Version(comments)/Name:Version/.../`,
# e.g. `/Ergo-Scala-client:2.0.0(iPad; U; CPU OS 3_2_1)/AndroidBuild:0.8/`
agentName = "/scala-client:0.0.1/"
# Network address
bindAddress = "0.0.0.0:9068"
########################
# Connection settings #
########################
# Magic bytes, that will be added to every p2p message to allow
# distinguish different networks (e.g. testnet/mainnet).
magicBytes = [12, 34, 56, 78]
# String with IP address and port to send as external address during handshake.
# Could be set automatically if UPnP is enabled.
#
# If `declared-address` is set, which is the common scenario for nodes running in the cloud,
# the node will just listen to incoming connections on `bindAddress:port` and
# broadcast its `declaredAddress` to its peers.
# UPnP is supposed to be disabled in this scenario.
#
# If declared address is not set and UPnP is not enabled, the node will not listen to incoming connections at all.
#
# If declared address is not set and UPnP is enabled, the node will attempt to connect to an IGD, retrieve its
# external IP address and configure the gateway to allow traffic through. If the node succeeds, the IGD's external
# IP address becomes the node's declared address.
#
# In some cases, you may both set `decalredAddress` and enable UPnP (e.g. when IGD can't reliably determine its
# external IP address). In such cases the node will attempt to configure an IGD to pass traffic from external port
# to `bind-address:port`. Please note, however, that this setup is not recommended.
# declaredAddress = ""
# Enable UPnP tunnel creation only if you router/gateway supports it. Useful if your node is runnin in home
# network. Completely useless if you node is in cloud.
upnpEnabled = no
# Accept only local connections
localOnly = false
# UPnP timeouts
# upnp-gateway-timeout = 7s
# upnp-discover-timeout = 3s
# Add delay for sending message
# addedMaxDelay = 0ms
##################
# Peers settings #
##################
# Network handshake timeout
handshakeTimeout = 30s
# List of IP addresses of well known nodes.
knownPeers = []
# Interval between GetPeers messages to be send by our node to a random one
getPeersInterval = 2m
# Number of network connections
maxConnections = 20
# Network connection timeout
connectionTimeout = 1s
############################
# Delivery settings limits #
############################
# Network delivery timeout
deliveryTimeout = 2s
# Max number of delivery checks for a persistent modifier.
# Stop expecting modifier (and penalize peer) if it was not delivered on time.
maxDeliveryChecks = 2
############
# Timeouts #
############
# Interval between `SyncInfo` messages when our node is not synchronized yet
syncInterval = 5s
# Interval between `SyncInfo` messages when our node is already synchronized
syncIntervalStable = 20s
# Synchronization timeout
syncTimeout = 5s
# Synchronization status update interval
syncStatusRefresh = 2m
# Synchronization status update interval for stable regime
syncStatusRefreshStable = 4m
# Timeout for dropping dead connections
inactiveConnectionDeadline = 12m
# Network controller timeout
controllerTimeout = 5s
###############
# Size limits #
###############
# Maximum income package size
maxPacketSize = 1048576
# Maximum size of a handshaking message
maxHandshakeSize = 8096
# Accept maximum inv objects
maxInvObjects = 512
# Desired number of inv objects. Our requests will have this size.
desiredInvObjects = 512
# How many persistent modifiers to store in the cache.
# The cache stores modifiers that are waiting to be applied.
maxModifiersCacheSize = 1024
# Maximum number of PeerSpec objects in one Peers message
maxPeerSpecObjects = 64
# Default ban duration, unless permanent penalty is applied
temporalBanDuration = 60m
# Misbehaving peer penalty score will not be increased withing this time interval,
# unless permanent penalty is applied
penaltySafeInterval = 5m
# Max penalty score peer can accumulate before being banned
penaltyScoreThreshold = 100
# interval of evicting random peer to avoid eclipsing
peerEvictInterval = 1h
}
ntp {
# NTP server address
server = "pool.ntp.org"
# update time rate
updateEvery = 30m
# server answer timeout
timeout = 30s
}
}