forked from nimiq/core-rs-albatross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.example.toml
294 lines (241 loc) · 8.17 KB
/
client.example.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
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
##############################################################################
#
# Nimiq core-rs example configuration file
#
# Copy this to client.toml and edit appropriately.
#
# The client will look for this config file in:
# * './' (current directory)
# * '$HOME/.config/nimiq'
#
##############################################################################
##############################################################################
#
# Network specific configuration
#
##############################################################################
[network]
listen_addresses = [
"/ip4/0.0.0.0/tcp/8443/ws",
]
seed_nodes = [
{ address = "/dns4/seed1.pos.nimiq-testnet.com/tcp/8443/wss" },
]
# Optionally specify address(es) that will be advertised to peers instead of the ones in `listen_addresses`
#
# This can be used to advertise the public URL and port that peers should connect to, while
# `listen_addresses` contains the loopback IP and port that this nodes listens on, which may
# not be publicly reachable.
# For validators it is strongly recommended to list a public reachable IPv4 IP.
#advertised_addresses = [
# "/ip4/my.ip/tcp/8444/ws",
# "/dns4/my.public.domain.com/tcp/8443/wss",
#]
# User Agent
#
# String that describes what kind of node is running.
#
# Default: Generated from version, operating system and processor architecture
#user_agent = "core-rs/0.1.0 (native; linux x86_64)"
# Optionally specify if the network should allow the autonat feature to use non global IPs
# Recommended setting is to keep it in false.
#
# Default: false
#autonat_allow_non_global_ips = false
# Optionally specify the desired number of peer connections the network should try to maintain
# Recommended setting is to keep it in the default value (12).
#
# Default: 12
#desired_peer_count = 12
##############################################################################
#
# TLS network configuration:
# - Path to private key file (PEM-encoded ASN.1 in either PKCS#8 or PKCS#1 format)
# - Path to a certificate or fullchain file (PEM-encoded X.509 format)
#
# Usually, PEM files from SSL providers like Let's Encrypt can be used as-is.
#
##############################################################################
#[network.tls]
#private_key = "./my_private_key.pem"
#certificates = "./my_certificate.pem"
##############################################################################
#
# Consensus specific configuration
#
##############################################################################
[consensus]
# Specify the network to connect to.
# Possible values: "main", "test", "dev", "test-albatross", "dev-albatross"
# Default: "dev-albatross"
network = "test-albatross"
# Specify the sync menchanism according to the client type
# Possible values: history, full or light
sync_mode = "full"
# Specify the minimum distance away, in number of blocks, from the head to switch from state sync to live sync.
# This property only has an effect when the sync_mode has the value "full"
# Default: 10800
# full_sync_threshold = 1000
# Enable or disable transaction indexing for history nodes.
# This property only has an effect when the sync_mode has the value "history"
# Default: true
# index_history = true
##############################################################################
#
# Database specific configuration
#
##############################################################################
#[database]
# Path to database
# Default: ~/.nimiq
#path=""
# Size of mapped memory (in bytes)
# Default: 10 MB
#size=0
# Max number of databases
# Default: 13
#max_dbs=13
##############################################################################
#
# ZK Proof specific configuration
#
##############################################################################
#[zkp]
# Specify the proof generation capabilities.
# Defines if the proof generation is active
# Default: false
# prover_active = true
# Defines the path for the proving keys folders
# Default: ".zkp"
# prover_keys_path = "some_folder" #defaults to .zkp folder
##############################################################################
#
# Configure the JSON-RPC server.
#
# To enable, uncomment the section header '[rpc-server]'
#
#
#
##############################################################################
# Uncomment the following line to enable the RPC server.
[rpc-server]
# Bind the RPC server to specified IP
# Default: 127.0.0.1
bind = "127.0.0.1"
# TCP-Port to use to create a listening socket for the JSON-RPC server.
# Possible values: any valid port number
# Default: 8648
port = 8648
# Allow only the RPC methods listed here. All methods are allowed if this is empty.
# Example: ["getBlockByNumber", "peerCount"],
# Default: []
methods = []
# Declare a username and password required to access the JSON-RPC server.
# Default: none
username = "super"
# Default: none
password = "secret"
##############################################################################
#
# Metrics-server configuration.
# If the section header is uncommented, the server is enabled.
#
##############################################################################
[metrics-server]
# Bind the metrics server to the specified IP
# Default: 127.0.0.1
bind = "127.0.0.1"
# Port to use to create a listening socket for the metrics server.
# Possible values: any valid port number
# Default: 9100
port = 9100
# Declare a username and password required to access the metrics server.
# Default: none
username = "super"
# Default: none
password = "secret"
##############################################################################
#
# Configure log output.
#
##############################################################################
[log]
# Configure global log level.
# Possible values: "trace", "debug", "info", "warn", "error"
# Default: "info"
level = "debug"
# Define specific log levels for tags.
# Default: none
#tags = { BaseConsensus = "debug" }
# Specify whether timestamps should be included for log statements.
# Default: true
#timestamps = false
# Save log output to a file.
# If not specified, log to stdout.
# Default: none
#file = "nimiq-client.log"
# Tokio console
# Default: None
#tokio_console_bind_address = "127.0.0.1:6669"
# Loki target
# [log.loki]
# Loki server address
# Default: None
# url = "http://localhost:3100"
# Labels set on the log messages. There should only be a finite amount of
# different label values, and ideally very few labels. See the Loki
# documentation for details:
# labels = { host = "mine" }
# Extra fields added to each log message (e.g. to distinguish runs)
# extra_fields = { run = "e2f8e044-0067-4902-914f-261b7f500ba7" }
##############################################################################
#
# Configure log output for the prover process.
# This section offers the same options as the [log] section.
#
##############################################################################
# [prover-log]
# Configure global log level.
# Possible values: "trace", "debug", "info", "warn", "error"
# Default: "info"
# level = "debug"
##############################################################################
##
## Configure mempool
##
###############################################################################
[mempool]
# Total size limit of transactions in the mempool (bytes)
# Default: 12_000_000 (~ 100000 basic tx)
#size_limit = 12_000_000
# Configure max size of transaction black list
# Default: 25000
#blacklist_limit = 25000
# Rules to filter certain transaction
#[mempool.filter]
#tx_fee = 0
#tx_fee_per_byte = 0
#tx_value = 0
#tx_value_total = 0
#contract_fee = 0
#contract_fee_per_byte = 0
#contract_value = 0
#creation_fee = 0
#creation_fee_per_byte = 0
#creation_value = 0
#sender_balance = 0
#recipient_balance = 0
##############################################################################
##
## Configure validator
##
###############################################################################
[validator]
validator_address = "NQ07 0000 0000 0000 0000 0000 0000 0000 0000"
signing_key_file = "signing_key.dat"
voting_key_file = "voting_key.dat"
fee_key_file = "fee_key.dat"
#signing_key = "Schnorr Private Key"
#fee_key = "Schnorr Private Key"
#voting_key = "BLS Private Key"
automatic_reactivate = true