forked from nimiq/core-rs-albatross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.example.toml
221 lines (173 loc) · 5.39 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
##############################################################################
#
# 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/9100/ws",
]
seed_nodes = [
{ address = "/dns4/seed1.v2.nimiq-testnet.com/tcp/8443/ws" }
]
# 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)"
##############################################################################
#
# Identity file (PCKS#12) and password for private key
#
##############################################################################
#[network.tls]
#identity_file = "./my.domain.p12"
#identity_password = "secret"
##############################################################################
#
# Consensus specific configuration
#
##############################################################################
[consensus]
# Specify the network to connect to.
# Possible values: "main", "test", "dev", "test-albatross", "dev-albatross"
# Default: "dev-albatross"
#network = "main"
##############################################################################
#
# 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: 10
#max_dbs=10
##############################################################################
#
# 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"
##############################################################################
#
# 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"
# Specify a rotating log file containing a trace log
# [log.rotating_trace_log]
# Set the path to the folder containing the log files
# Default: "~/.nimiq/logs"
# path = none
# Size of each log file
# Default: 50_000_000 (50 MB)
# size = 50_000_000
# Count of additional log files. The total log files count will be file_count + 2.
# Default: 3
# file_count = 2
# 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 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"