This repository was archived by the owner on Dec 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathdefault_config.json
352 lines (352 loc) · 12.3 KB
/
default_config.json
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
{
"base_layer.node_url": {
"description": "A required param! Ethereum node URL. A schema to match to Infura node: https://mainnet.infura.io/v3/<your_api_key>, but any other node can be used.",
"param_type": "String",
"privacy": "Private"
},
"base_layer.starknet_contract_address": {
"description": "Starknet contract address in ethereum.",
"privacy": "Public",
"value": "0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4"
},
"central.class_cache_size": {
"description": "Size of class cache, must be a positive integer.",
"privacy": "Public",
"value": 100
},
"central.concurrent_requests": {
"description": "Maximum number of concurrent requests to Starknet feeder-gateway for getting a type of data (for example, blocks).",
"privacy": "Public",
"value": 10
},
"central.http_headers": {
"description": "'k1:v1 k2:v2 ...' headers for SN-client.",
"privacy": "Private",
"value": ""
},
"central.max_classes_to_download": {
"description": "Maximum number of classes to download at a given time.",
"privacy": "Public",
"value": 20
},
"central.max_state_updates_to_download": {
"description": "Maximum number of state updates to download at a given time.",
"privacy": "Public",
"value": 20
},
"central.max_state_updates_to_store_in_memory": {
"description": "Maximum number of state updates to store in memory at a given time.",
"privacy": "Public",
"value": 20
},
"central.retry_config.max_retries": {
"description": "Maximum number of retries before the node stops retrying.",
"privacy": "Public",
"value": 10
},
"central.retry_config.retry_base_millis": {
"description": "Base waiting time after a failed request. After that, the time increases exponentially.",
"privacy": "Public",
"value": 30
},
"central.retry_config.retry_max_delay_millis": {
"description": "Max waiting time after a failed request.",
"privacy": "Public",
"value": 30000
},
"central.url": {
"description": "Starknet feeder-gateway URL. It should match chain_id.",
"pointer_target": "starknet_url",
"privacy": "Public"
},
"chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"privacy": "TemporaryValue",
"value": "SN_MAIN"
},
"collect_metrics": {
"description": "If true, collect metrics for the node.",
"privacy": "TemporaryValue",
"value": false
},
"collect_profiling_metrics": {
"description": "If true, collect profiling metrics for the node.",
"privacy": "Public",
"value": false
},
"consensus.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"consensus.num_validators": {
"description": "The number of validators in the consensus.",
"privacy": "Public",
"value": 4
},
"consensus.start_height": {
"description": "The height to start the consensus from.",
"privacy": "Public",
"value": 0
},
"consensus.topic": {
"description": "The topic of the consensus.",
"privacy": "Public",
"value": "consensus"
},
"consensus.validator_id": {
"description": "A required param! The validator id of the node.",
"param_type": "String",
"privacy": "Public"
},
"monitoring_gateway.collect_metrics": {
"description": "If true, collect and return metrics in the monitoring gateway.",
"pointer_target": "collect_metrics",
"privacy": "Public"
},
"monitoring_gateway.metric_labels": {
"description": "'label1:value1 label2:value2 ...' additional labels for metrics.",
"privacy": "Public",
"value": ""
},
"monitoring_gateway.present_full_config_secret": {
"description": "A secret for presenting the full general config. If no value is provided, the system will generate one.",
"param_type": "String",
"privacy": "Private"
},
"monitoring_gateway.server_address": {
"description": "node's monitoring server.",
"privacy": "Public",
"value": "0.0.0.0:8081"
},
"monitoring_gateway.starknet_url": {
"description": "The URL of a centralized Starknet gateway.",
"pointer_target": "starknet_url",
"privacy": "Public"
},
"network.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"network.bootstrap_peer_multiaddr": {
"description": "The multiaddress of the peer node. It should include the peer's id. For more info: https://docs.libp2p.io/concepts/fundamentals/peers/",
"privacy": "Public",
"value": ""
},
"network.bootstrap_peer_multiaddr.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"network.idle_connection_timeout": {
"description": "Amount of time in seconds that a connection with no active sessions will stay alive.",
"privacy": "Public",
"value": 120
},
"network.quic_port": {
"description": "The port that the node listens on for incoming quic connections.",
"privacy": "Public",
"value": 10001
},
"network.secret_key": {
"description": "The secret key used for building the peer id. If it's an empty string a random one will be used.",
"privacy": "Private",
"value": ""
},
"network.session_timeout": {
"description": "Maximal time in seconds that each session can take before failing on timeout.",
"privacy": "Public",
"value": 120
},
"network.tcp_port": {
"description": "The port that the node listens on for incoming tcp connections.",
"privacy": "Public",
"value": 10000
},
"p2p_sync.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"p2p_sync.buffer_size": {
"description": "Size of the buffer for read from the storage and for incoming responses.",
"privacy": "Public",
"value": 100000
},
"p2p_sync.num_block_state_diffs_per_query": {
"description": "The maximum amount of block's state diffs to ask from peers in each iteration.",
"privacy": "Public",
"value": 100
},
"p2p_sync.num_headers_per_query": {
"description": "The maximum amount of headers to ask from peers in each iteration.",
"privacy": "Public",
"value": 10000
},
"p2p_sync.stop_sync_at_block_number": {
"description": "Stops the sync at given block number and closes the node cleanly. Used to run profiling on the node.",
"privacy": "Public",
"value": 1000
},
"p2p_sync.stop_sync_at_block_number.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": true
},
"p2p_sync.wait_period_for_new_data": {
"description": "Time in seconds to wait when a query returned with partial data before sending a new query",
"privacy": "Public",
"value": 5
},
"rpc.chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"pointer_target": "chain_id",
"privacy": "Public"
},
"rpc.collect_metrics": {
"description": "If true, collect metrics for the rpc.",
"pointer_target": "collect_metrics",
"privacy": "Public"
},
"rpc.execution_config.eth_fee_contract_address": {
"description": "The eth fee token address to receive fees",
"privacy": "Public",
"value": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
},
"rpc.execution_config.initial_gas_cost": {
"description": "The initial gas cost for a transaction",
"privacy": "Public",
"value": 10000000000
},
"rpc.execution_config.strk_fee_contract_address": {
"description": "The strk fee token address to receive fees",
"privacy": "Public",
"value": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"
},
"rpc.max_events_chunk_size": {
"description": "Maximum chunk size supported by the node in get_events requests.",
"privacy": "Public",
"value": 1000
},
"rpc.max_events_keys": {
"description": "Maximum number of keys supported by the node in get_events requests.",
"privacy": "Public",
"value": 100
},
"rpc.server_address": {
"description": "IP:PORT of the node`s JSON-RPC server.",
"privacy": "Public",
"value": "0.0.0.0:8080"
},
"rpc.starknet_gateway_retry_config.max_retries": {
"description": "For communicating with Starknet gateway, maximum number of retries before the node stops retrying.",
"privacy": "Public",
"value": 5
},
"rpc.starknet_gateway_retry_config.retry_base_millis": {
"description": "For communicating with Starknet gateway, base waiting time after a failed request. After that, the time increases exponentially.",
"privacy": "Public",
"value": 50
},
"rpc.starknet_gateway_retry_config.retry_max_delay_millis": {
"description": "For communicating with Starknet gateway, max waiting time after a failed request.",
"privacy": "Public",
"value": 1000
},
"rpc.starknet_url": {
"description": "URL for communicating with Starknet in write_api methods.",
"pointer_target": "starknet_url",
"privacy": "Public"
},
"starknet_url": {
"description": "The URL of a centralized Starknet gateway.",
"privacy": "TemporaryValue",
"value": "https://alpha-mainnet.starknet.io/"
},
"storage.db_config.chain_id": {
"description": "The chain to follow. For more details see https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#chain-id.",
"pointer_target": "chain_id",
"privacy": "Public"
},
"storage.db_config.enforce_file_exists": {
"description": "Whether to enforce that the path exists. If true, `open_env` fails when the mdbx.dat file does not exist.",
"privacy": "Public",
"value": false
},
"storage.db_config.growth_step": {
"description": "The growth step in bytes, must be greater than zero to allow the database to grow.",
"privacy": "Public",
"value": 4294967296
},
"storage.db_config.max_size": {
"description": "The maximum size of the node's storage in bytes.",
"privacy": "Public",
"value": 1099511627776
},
"storage.db_config.min_size": {
"description": "The minimum size of the node's storage in bytes.",
"privacy": "Public",
"value": 1048576
},
"storage.db_config.path_prefix": {
"description": "Prefix of the path of the node's storage directory, the storage file path will be <path_prefix>/<chain_id>. The path is not created automatically.",
"privacy": "Public",
"value": "./data"
},
"storage.mmap_file_config.growth_step": {
"description": "The growth step in bytes, must be greater than max_object_size.",
"privacy": "Public",
"value": 1073741824
},
"storage.mmap_file_config.max_object_size": {
"description": "The maximum size of a single object in the file in bytes",
"privacy": "Public",
"value": 268435456
},
"storage.mmap_file_config.max_size": {
"description": "The maximum size of a memory mapped file in bytes. Must be greater than growth_step.",
"privacy": "Public",
"value": 1099511627776
},
"storage.scope": {
"description": "The categories of data saved in storage.",
"privacy": "Public",
"value": "FullArchive"
},
"sync.#is_none": {
"description": "Flag for an optional field.",
"privacy": "TemporaryValue",
"value": false
},
"sync.base_layer_propagation_sleep_duration": {
"description": "Time in seconds to poll the base layer to get the latest proved block.",
"privacy": "Public",
"value": 10
},
"sync.block_propagation_sleep_duration": {
"description": "Time in seconds before checking for a new block after the node is synchronized.",
"privacy": "Public",
"value": 2
},
"sync.blocks_max_stream_size": {
"description": "Max amount of blocks to download in a stream.",
"privacy": "Public",
"value": 1000
},
"sync.recoverable_error_sleep_duration": {
"description": "Waiting time in seconds before restarting synchronization after a recoverable error.",
"privacy": "Public",
"value": 3
},
"sync.state_updates_max_stream_size": {
"description": "Max amount of state updates to download in a stream.",
"privacy": "Public",
"value": 1000
},
"sync.verify_blocks": {
"description": "Whether to verify incoming blocks.",
"privacy": "Public",
"value": true
}
}