This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
181 lines (141 loc) · 6.19 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
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
# ================================
# Configuration options for a node
# ================================
[node]
# Path (absolute, or relative to this config.toml) to the chainspec configuration file.
chainspec_config_path = 'chainspec.toml'
# If set, use this hash as a trust anchor when joining an existing network.
#trusted_hash = 'HEX-FORMATTED BLOCK HASH'
# =================================
# Configuration options for logging
# =================================
[logging]
# Output format. Possible values are 'text' or 'json'.
format = 'text'
# Colored output. Has no effect if format = 'json'.
color = false
# Abbreviate module names in text output. Has no effect if format = 'json'.
abbreviate_modules = false
# ===================================
# Configuration options for consensus
# ===================================
[consensus]
# Path (absolute, or relative to this config.toml) to validator's secret key file used to sign
# consensus messages.
secret_key_path = 'secret_key.pem'
# ====================================
# Configuration options for networking
# ====================================
[network]
# The public address of the node.
#
# It must be publicly available in order to allow peers to connect to this node.
# If the port is set to 0, the actual bound port will be substituted.
public_address = '127.0.0.1:0'
# Address to bind to for listening.
# If port is set to 0, a random port will be used.
bind_address = '0.0.0.0:34553'
# Addresses to connect to in order to join the network.
#
# If not set, this node will not be able to attempt to connect to the network. Instead it will
# depend upon peers connecting to it. This is normally only useful for the first node of the
# network.
#
# Multiple addresses can be given and the node will attempt to connect to each, requiring at least
# one connection.
known_addresses = ['127.0.0.1:34553']
# The interval (in milliseconds) between each fresh round of gossiping the node's public address.
gossip_interval = 30000
# Enable systemd support. If enabled, the node will notify systemd once it has synced and its
# listening socket for incoming connections is open.
#
# It is usually better to leave this option off and enable it explicitly via command-line override
# only in the unit files themselves via `-C=network.systemd_support=true`.
systemd_support = false
# =============================================
# Configuration options for the HTTP API server
# =============================================
[http_server]
# Listening address for HTTP server. If the port is set to 0, a random port will be used.
#
# If the specified port cannot be bound to, a random port will be tried instead. If binding fails,
# the HTTP server will not run, but the node will be otherwise unaffected.
#
# The actual bound address will be reported via a log line if logging is enabled.
address = '0.0.0.0:7777'
# The number of event-stream events to buffer.
event_stream_buffer_length = 100
# ===============================================
# Configuration options for the storage component
# ===============================================
[storage]
# Path (absolute, or relative to this config.toml) to the folder where any files created
# or read by the storage component will exist.
#
# If the folder doesn't exist, it and any required parents will be created.
#
# If unset, the path must be supplied as an argument via the CLI.
path = '../node-storage'
# Optional maximum size of the database to use for the block store.
#
# If unset, defaults to 483,183,820,800 == 450 GiB.
#
# The size should be a multiple of the OS page size.
#max_block_store_size = 483183820800
# Optional maximum size of the database to use for the deploy store.
#
# If unset, defaults to 322,122,547,200 == 300 GiB.
#
# The size should be a multiple of the OS page size.
#max_deploy_store_size = 322122547200
# Optional maximum size of the database to use for the block height store.
#
# If unset, defaults to 10,485,100 == 10 MiB.
#
# The size should be a multiple of the OS page size.
#max_block_height_store_size = 10485100
# Optional maximum size of the database to use for the chainspec store.
#
# If unset, defaults to 1,073,741,824 == 1 GiB.
#
# The size should be a multiple of the OS page size.
#max_chainspec_store_size = 1073741824
# ===================================
# Configuration options for gossiping
# ===================================
[gossip]
# Target number of peers to infect with a given piece of data.
infection_target = 3
# The saturation limit as a percentage, with a maximum value of 99. Used as a termination
# condition.
#
# Example: assume the `infection_target` is 3, the `saturation_limit_percent` is 80, and we don't
# manage to newly infect 3 peers. We will stop gossiping once we know of more than 15 holders
# excluding us since 80% saturation would imply 3 new infections in 15 peers.
saturation_limit_percent = 80
# The maximum duration in seconds for which to keep finished entries.
#
# The longer they are retained, the lower the likelihood of re-gossiping a piece of data. However,
# the longer they are retained, the larger the list of finished entries can grow.
finished_entry_duration_secs = 3600
# The timeout duration in seconds for a single gossip request, i.e. for a single gossip message
# sent from this node, it will be considered timed out if the expected response from that peer is
# not received within this specified duration.
gossip_request_timeout_secs = 10
# The timeout duration in seconds for retrieving the remaining part(s) of newly-discovered data
# from a peer which gossiped information about that data to this node.
get_remainder_timeout_secs = 60
# ========================================================
# Configuration options for the contract runtime component
# ========================================================
[contract_runtime]
# Optional setting to use system contracts or not. If unset, defaults to false.
#use_system_contracts = false
# Optional setting to enable bonding or not. If unset, defaults to false.
#enable_bonding = false
# Optional maximum size of the database to use for the global state store.
#
# If unset, defaults to 805,306,368,000 == 750 GiB.
#
# The size should be a multiple of the OS page size.
#max_global_state_size = 805306368000