forked from nimiq/core-rs-albatross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.example.toml
246 lines (189 loc) · 6.13 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
##############################################################################
#
# 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/127.0.0.1/tcp/8443",
"/ip6/[::1]/tcp/8443",
]
# 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
# Don't sync to disk after each database transaction
# Default: false
# WARNING: This can potentially corrupt the database if the program is not
# properly terminated
#no_lmdb_sync=true
##############################################################################
#
# 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 Prometheus-compatible metrics server.
#
##############################################################################
# Uncomment the following line to enable the metrics server.
#[metrics-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 metrics server.
# Possible values: any valid port number
# Default: 8649
#port = 8649
# Declare a password required to access the metrics server.
# Default: none
#password = "secret"
##############################################################################
#
# Configure support to run this node behind a reverse proxy.
#
##############################################################################
# Uncomment the following line to enable reverse proxy support.
#[reverse-proxy]
# TCP-Port where the reverse proxy is listening.
# Possible values: any valid port number
# Default: 8444
#port = 8443
# IP address of the reverse proxy that this node will "see".
# Possible values: any valid IP address
# Default: "::ffff:127.0.0.1"
#address = "::ffff:192.168.10.40"
# HTTP header where the reverse proxy will send the original IP address of the connecting client.
# Possible values: any valid HTTP header name
# Default: "x-forwarded-for"
#header = "x-forwarded-for"
# Determines whether the reverse proxy does TLS termination for this node.
# In that case, we want to advertise our peer address as web socket secure.
# So if your reverse proxy does the TLS and forwards an unencrypted websocket connection, set
# this to true and set the network protocol to 'ws'.
#
# Default: false
#with_tls_termination = true
##############################################################################
#
# 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"
# 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: 50000000 (50mB)
# size = 50000000
# Count of additional log files. The total log files count will be file_count + 2.
# Default: 3
# file_count = 2
##############################################################################
##
## Configure mempool
##
###############################################################################
[mempool]
# 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