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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
# relative to the home directory (e.g. "data"). The home directory is
# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
# or --home cmd flag.
#######################################################################
### Main Base Config Options ###
#######################################################################
# TCP or UNIX socket address of the ABCI application,
# or the name of an ABCI application compiled in with the Tendermint binary
= "tcp://127.0.0.1:26658"
# A custom human readable name for this node
= "node001"
# If this node is many blocks behind the tip of the chain, FastSync
# allows them to catchup quickly by downloading blocks in parallel
# and verifying their commits
= true
# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb
# * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
# - pure go
# - stable
# * cleveldb (uses levigo wrapper)
# - fast
# - requires gcc
# - use cleveldb build tag (go build -tags cleveldb)
# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)
# - EXPERIMENTAL
# - may be faster is some use-cases (random reads - indexer)
# - use boltdb build tag (go build -tags boltdb)
# * rocksdb (uses github.com/tecbot/gorocksdb)
# - EXPERIMENTAL
# - requires gcc
# - use rocksdb build tag (go build -tags rocksdb)
# * badgerdb (uses github.com/dgraph-io/badger)
# - EXPERIMENTAL
# - use badgerdb build tag (go build -tags badgerdb)
= "goleveldb"
# Database directory
= "data"
# Output level for logging, including package level options
= "info"
# Output format: 'plain' (colored text) or 'json'
= "plain"
##### additional base config options #####
# Path to the JSON file containing the initial validator set and other meta data
= "config/genesis.json"
# Path to the JSON file containing the private key to use as a validator in the consensus protocol
= "config/priv_validator_key.json"
# Path to the JSON file containing the last sign state of a validator
= "data/priv_validator_state.json"
# TCP or UNIX socket address for Tendermint to listen on for
# connections from an external PrivValidator process
= ""
# Path to the JSON file containing the private key to use for node authentication in the p2p protocol
= "config/node_key.json"
# Mechanism to connect to the ABCI application: socket | grpc
= "socket"
# If true, query the ABCI app on connecting to a new peer
# so the app can decide if we should keep the connection or not
= false
#######################################################################
### Advanced Configuration Options ###
#######################################################################
#######################################################
### RPC Server Configuration Options ###
#######################################################
[]
# TCP or UNIX socket address for the RPC server to listen on
= "tcp://127.0.0.1:26657"
# A list of origins a cross-domain request can be executed from
# Default value '[]' disables cors support
# Use '["*"]' to allow any origin
= ["*"]
# A list of methods the client is allowed to use with cross-domain requests
= ["HEAD", "GET", "POST", ]
# A list of non simple headers the client is allowed to use with cross-domain requests
= ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]
# TCP or UNIX socket address for the gRPC server to listen on
# NOTE: This server only supports /broadcast_tx_commit
= ""
# Maximum number of simultaneous connections.
# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
# 1024 - 40 - 10 - 50 = 924 = ~900
= 900
# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
= false
# Maximum number of simultaneous connections (including WebSocket).
# Does not include gRPC connections. See grpc_max_open_connections
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
# 1024 - 40 - 10 - 50 = 924 = ~900
= 900
# Maximum number of unique clientIDs that can /subscribe
# If you're using /broadcast_tx_commit, set to the estimated maximum number
# of broadcast_tx_commit calls per block.
= 100
# Maximum number of unique queries a given client can /subscribe to
# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to
# the estimated # maximum number of broadcast_tx_commit calls per block.
= 5
# How long to wait for a tx to be committed during /broadcast_tx_commit.
# WARNING: Using a value larger than 10s will result in increasing the
# global HTTP write timeout, which applies to all connections and endpoints.
# See https://github.com/tendermint/tendermint/issues/3435
= "10s"
# Maximum size of request body, in bytes
= 1000000
# Maximum size of request header, in bytes
= 1048576
# The path to a file containing certificate that is used to create the HTTPS server.
# Might be either absolute path or path related to Tendermint's config directory.
# If the certificate is signed by a certificate authority,
# the certFile should be the concatenation of the server's certificate, any intermediates,
# and the CA's certificate.
# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server.
# Otherwise, HTTP server is run.
= ""
# The path to a file containing matching private key that is used to create the HTTPS server.
# Might be either absolute path or path related to Tendermint's config directory.
# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server.
# Otherwise, HTTP server is run.
= ""
# pprof listen address (https://golang.org/pkg/net/http/pprof)
= "localhost:6060"
#######################################################
### P2P Configuration Options ###
#######################################################
[]
# Address to listen for incoming connections
= "tcp://0.0.0.0:26656"
# Address to advertise to peers for them to dial
# If empty, will use the same port as the laddr,
# and will introspect on the listener or use UPnP
# to figure out the address. ip and port are required
# example: 159.89.10.97:26656
= ""
# Comma separated list of seed nodes to connect to
= ""
# Comma separated list of nodes to keep persistent connections to
= ""
# UPNP port forwarding
= false
# Path to address book
= "config/addrbook.json"
# Set true for strict address routability rules
# Set false for private or local networks
= true
# Maximum number of inbound peers
= 40
# Maximum number of outbound peers to connect to, excluding persistent peers
= 10
# List of node IDs, to which a connection will be (re)established ignoring any existing limits
= ""
# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
= "0s"
# Time to wait before flushing messages out on the connection
= "100ms"
# Maximum size of a message packet payload, in bytes
= 1024
# Rate at which packets can be sent, in bytes/second
= 5120000
# Rate at which packets can be received, in bytes/second
= 5120000
# Set true to enable the peer-exchange reactor
= true
# Seed mode, in which node constantly crawls the network and looks for
# peers. If another node asks it for addresses, it responds and disconnects.
#
# Does not work if the peer-exchange reactor is disabled.
= false
# Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
= ""
# Toggle to disable guard against peers connecting from the same ip.
= false
# Peer connection configuration.
= "20s"
= "3s"
#######################################################
### Mempool Configuration Option ###
#######################################################
[]
= true
= true
= ""
# Maximum number of transactions in the mempool
= 5000
# Limit the total size of all txs in the mempool.
# This only accounts for raw transactions (e.g. given 1MB transactions and
# max_txs_bytes=5MB, mempool will only accept 5 transactions).
= 1073741824
# Size of the cache (used to filter transactions we saw earlier) in transactions
= 10000
# Do not remove invalid transactions from the cache (default: false)
# Set to true if it's not possible for any invalid transaction to become valid
# again in the future.
= false
# Maximum size of a single transaction.
# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
= 1048576
# Maximum size of a batch of transactions to send to a peer
# Including space needed by encoding (one varint per transaction).
# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
= 0
#######################################################
### State Sync Configuration Options ###
#######################################################
[]
# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
# the network to take and serve state machine snapshots. State sync is not attempted if the node
# has any local state (LastBlockHeight > 0). The node will have a truncated block history,
# starting from the height of the snapshot.
= false
# RPC servers (comma-separated) for light client verification of the synced state machine and
# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
# header hash obtained from a trusted source, and a period during which validators can be trusted.
#
# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
# weeks) during which they can be financially punished (slashed) for misbehavior.
= ""
= 0
= ""
= "168h0m0s"
# Time to spend discovering snapshots before initiating a restore.
= "15s"
# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
# Will create a new, randomly named directory within, and remove it when done.
= ""
# The timeout duration before re-requesting a chunk, possibly from a different
# peer (default: 1 minute).
= "10s"
# The number of concurrent chunk fetchers to run (default: 1).
= "4"
#######################################################
### Fast Sync Configuration Connections ###
#######################################################
[]
# Fast Sync version to use:
# 1) "v0" (default) - the legacy fast sync implementation
# 2) "v1" - refactor of v0 version for better testability
# 2) "v2" - complete redesign of v0, optimized for testability & readability
= "v0"
#######################################################
### Consensus Configuration Options ###
#######################################################
[]
= "data/cs.wal/wal"
# How long we wait for a proposal block before prevoting nil
= "3s"
# How much timeout_propose increases with each round
= "500ms"
# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
= "1s"
# How much the timeout_prevote increases with each round
= "500ms"
# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
= "1s"
# How much the timeout_precommit increases with each round
= "500ms"
# How long we wait after committing a block, before starting on the new
# height (this gives us a chance to receive some more precommits, even
# though we already have +2/3).
= "5s"
# How many blocks to look back to check existence of the node's consensus votes before joining consensus
# When non-zero, the node will panic upon restart
# if the same consensus key was used to sign {double_sign_check_height} last blocks.
# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
= 0
# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
= false
# EmptyBlocks mode and possible interval between empty blocks
= true
= "0s"
# Reactor sleep duration parameters
= "100ms"
= "2s"
#######################################################
### Transaction Indexer Configuration Options ###
#######################################################
[]
# What indexer to use for transactions
#
# The application will set which txs to index. In some cases a node operator will be able
# to decide which txs to index based on configuration set in the application.
#
# Options:
# 1) "null"
# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
= "kv"
#######################################################
### Instrumentation Configuration Options ###
#######################################################
[]
# When true, Prometheus metrics are served under /metrics on
# PrometheusListenAddr.
# Check out the documentation for the list of available metrics.
= false
# Address to listen for Prometheus collector(s) connections
= ":26660"
# Maximum number of simultaneous connections.
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
= 3
# Instrumentation namespace
= "tendermint"