You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

653 lines
27 KiB

  1. ---
  2. order: 3
  3. ---
  4. # Configuration
  5. Tendermint Core can be configured via a TOML file in
  6. `$TMHOME/config/config.toml`. Some of these parameters can be overridden by
  7. command-line flags. For most users, the options in the `##### main base configuration options #####` are intended to be modified while config options
  8. further below are intended for advance power users.
  9. ## Options
  10. The default configuration file create by `tendermint init` has all
  11. the parameters set with their default values. It will look something
  12. like the file below, however, double check by inspecting the
  13. `config.toml` created with your version of `tendermint` installed:
  14. ```toml# This is a TOML config file.
  15. # For more information, see https://github.com/toml-lang/toml
  16. # NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
  17. # relative to the home directory (e.g. "data"). The home directory is
  18. # "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
  19. # or --home cmd flag.
  20. #######################################################################
  21. ### Main Base Config Options ###
  22. #######################################################################
  23. # TCP or UNIX socket address of the ABCI application,
  24. # or the name of an ABCI application compiled in with the Tendermint binary
  25. proxy-app = "tcp://127.0.0.1:26658"
  26. # A custom human readable name for this node
  27. moniker = "ape"
  28. # Mode of Node: full | validator | seed (default: "validator")
  29. # * validator node (default)
  30. # - all reactors
  31. # - with priv_validator_key.json, priv_validator_state.json
  32. # * full node
  33. # - all reactors
  34. # - No priv_validator_key.json, priv_validator_state.json
  35. # * seed node
  36. # - only P2P, PEX Reactor
  37. # - No priv_validator_key.json, priv_validator_state.json
  38. mode = "validator"
  39. # If this node is many blocks behind the tip of the chain, FastSync
  40. # allows them to catchup quickly by downloading blocks in parallel
  41. # and verifying their commits
  42. fast-sync = true
  43. # Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb
  44. # * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
  45. # - pure go
  46. # - stable
  47. # * cleveldb (uses levigo wrapper)
  48. # - fast
  49. # - requires gcc
  50. # - use cleveldb build tag (go build -tags cleveldb)
  51. # * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)
  52. # - EXPERIMENTAL
  53. # - may be faster is some use-cases (random reads - indexer)
  54. # - use boltdb build tag (go build -tags boltdb)
  55. # * rocksdb (uses github.com/tecbot/gorocksdb)
  56. # - EXPERIMENTAL
  57. # - requires gcc
  58. # - use rocksdb build tag (go build -tags rocksdb)
  59. # * badgerdb (uses github.com/dgraph-io/badger)
  60. # - EXPERIMENTAL
  61. # - use badgerdb build tag (go build -tags badgerdb)
  62. db-backend = "goleveldb"
  63. # Database directory
  64. db-dir = "data"
  65. # Output level for logging, including package level options
  66. log-level = "info"
  67. # Output format: 'plain' (colored text) or 'json'
  68. log-format = "plain"
  69. ##### additional base config options #####
  70. # Path to the JSON file containing the initial validator set and other meta data
  71. genesis-file = "config/genesis.json"
  72. # Path to the JSON file containing the private key to use for node authentication in the p2p protocol
  73. node-key-file = "config/node_key.json"
  74. # Mechanism to connect to the ABCI application: socket | grpc
  75. abci = "socket"
  76. # If true, query the ABCI app on connecting to a new peer
  77. # so the app can decide if we should keep the connection or not
  78. filter-peers = false
  79. #######################################################
  80. ### Priv Validator Configuration ###
  81. #######################################################
  82. [priv-validator]
  83. # Path to the JSON file containing the private key to use as a validator in the consensus protocol
  84. key-file = "config/priv_validator_key.json"
  85. # Path to the JSON file containing the last sign state of a validator
  86. state-file = "data/priv_validator_state.json"
  87. # TCP or UNIX socket address for Tendermint to listen on for
  88. # connections from an external PrivValidator process
  89. # when the listenAddr is prefixed with grpc instead of tcp it will use the gRPC Client
  90. laddr = ""
  91. # Path to the client certificate generated while creating needed files for secure connection.
  92. # If a remote validator address is provided but no certificate, the connection will be insecure
  93. client-certificate-file = ""
  94. # Client key generated while creating certificates for secure connection
  95. validator-client-key-file = ""
  96. # Path to the Root Certificate Authority used to sign both client and server certificates
  97. certificate-authority = ""
  98. #######################################################################
  99. ### Advanced Configuration Options ###
  100. #######################################################################
  101. #######################################################
  102. ### RPC Server Configuration Options ###
  103. #######################################################
  104. [rpc]
  105. # TCP or UNIX socket address for the RPC server to listen on
  106. laddr = "tcp://127.0.0.1:26657"
  107. # A list of origins a cross-domain request can be executed from
  108. # Default value '[]' disables cors support
  109. # Use '["*"]' to allow any origin
  110. cors-allowed-origins = []
  111. # A list of methods the client is allowed to use with cross-domain requests
  112. cors-allowed-methods = ["HEAD", "GET", "POST", ]
  113. # A list of non simple headers the client is allowed to use with cross-domain requests
  114. cors-allowed-headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]
  115. # TCP or UNIX socket address for the gRPC server to listen on
  116. # NOTE: This server only supports /broadcast_tx_commit
  117. # Deprecated gRPC in the RPC layer of Tendermint will be deprecated in 0.36.
  118. grpc-laddr = ""
  119. # Maximum number of simultaneous connections.
  120. # Does not include RPC (HTTP&WebSocket) connections. See max-open-connections
  121. # If you want to accept a larger number than the default, make sure
  122. # you increase your OS limits.
  123. # 0 - unlimited.
  124. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  125. # 1024 - 40 - 10 - 50 = 924 = ~900
  126. # Deprecated gRPC in the RPC layer of Tendermint will be deprecated in 0.36.
  127. grpc-max-open-connections = 900
  128. # Activate unsafe RPC commands like /dial-seeds and /unsafe-flush-mempool
  129. unsafe = false
  130. # Maximum number of simultaneous connections (including WebSocket).
  131. # Does not include gRPC connections. See grpc-max-open-connections
  132. # If you want to accept a larger number than the default, make sure
  133. # you increase your OS limits.
  134. # 0 - unlimited.
  135. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  136. # 1024 - 40 - 10 - 50 = 924 = ~900
  137. max-open-connections = 900
  138. # Maximum number of unique clientIDs that can /subscribe
  139. # If you're using /broadcast_tx_commit, set to the estimated maximum number
  140. # of broadcast_tx_commit calls per block.
  141. max-subscription-clients = 100
  142. # Maximum number of unique queries a given client can /subscribe to
  143. # If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to
  144. # the estimated # maximum number of broadcast_tx_commit calls per block.
  145. max-subscriptions-per-client = 5
  146. # How long to wait for a tx to be committed during /broadcast_tx_commit.
  147. # WARNING: Using a value larger than 10s will result in increasing the
  148. # global HTTP write timeout, which applies to all connections and endpoints.
  149. # See https://github.com/tendermint/tendermint/issues/3435
  150. timeout-broadcast-tx-commit = "10s"
  151. # Maximum size of request body, in bytes
  152. max-body-bytes = 1000000
  153. # Maximum size of request header, in bytes
  154. max-header-bytes = 1048576
  155. # The path to a file containing certificate that is used to create the HTTPS server.
  156. # Might be either absolute path or path related to Tendermint's config directory.
  157. # If the certificate is signed by a certificate authority,
  158. # the certFile should be the concatenation of the server's certificate, any intermediates,
  159. # and the CA's certificate.
  160. # NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server.
  161. # Otherwise, HTTP server is run.
  162. tls-cert-file = ""
  163. # The path to a file containing matching private key that is used to create the HTTPS server.
  164. # Might be either absolute path or path related to Tendermint's config directory.
  165. # NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server.
  166. # Otherwise, HTTP server is run.
  167. tls-key-file = ""
  168. # pprof listen address (https://golang.org/pkg/net/http/pprof)
  169. pprof-laddr = ""
  170. #######################################################
  171. ### P2P Configuration Options ###
  172. #######################################################
  173. [p2p]
  174. # Enable the legacy p2p layer.
  175. use-legacy = false
  176. # Select the p2p internal queue
  177. queue-type = "priority"
  178. # Address to listen for incoming connections
  179. laddr = "tcp://0.0.0.0:26656"
  180. # Address to advertise to peers for them to dial
  181. # If empty, will use the same port as the laddr,
  182. # and will introspect on the listener or use UPnP
  183. # to figure out the address. ip and port are required
  184. # example: 159.89.10.97:26656
  185. external-address = ""
  186. # Comma separated list of seed nodes to connect to
  187. # We only use these if we can’t connect to peers in the addrbook
  188. # NOTE: not used by the new PEX reactor. Please use BootstrapPeers instead.
  189. # TODO: Remove once p2p refactor is complete
  190. # ref: https:#github.com/tendermint/tendermint/issues/5670
  191. seeds = ""
  192. # Comma separated list of peers to be added to the peer store
  193. # on startup. Either BootstrapPeers or PersistentPeers are
  194. # needed for peer discovery
  195. bootstrap-peers = ""
  196. # Comma separated list of nodes to keep persistent connections to
  197. persistent-peers = ""
  198. # UPNP port forwarding
  199. upnp = false
  200. # Path to address book
  201. # TODO: Remove once p2p refactor is complete
  202. # ref: https:#github.com/tendermint/tendermint/issues/5670
  203. addr-book-file = "config/addrbook.json"
  204. # Set true for strict address routability rules
  205. # Set false for private or local networks
  206. addr-book-strict = true
  207. # Maximum number of inbound peers
  208. #
  209. # TODO: Remove once p2p refactor is complete in favor of MaxConnections.
  210. # ref: https://github.com/tendermint/tendermint/issues/5670
  211. max-num-inbound-peers = 40
  212. # Maximum number of outbound peers to connect to, excluding persistent peers
  213. #
  214. # TODO: Remove once p2p refactor is complete in favor of MaxConnections.
  215. # ref: https://github.com/tendermint/tendermint/issues/5670
  216. max-num-outbound-peers = 10
  217. # Maximum number of connections (inbound and outbound).
  218. max-connections = 64
  219. # Rate limits the number of incoming connection attempts per IP address.
  220. max-incoming-connection-attempts = 100
  221. # List of node IDs, to which a connection will be (re)established ignoring any existing limits
  222. # TODO: Remove once p2p refactor is complete
  223. # ref: https:#github.com/tendermint/tendermint/issues/5670
  224. unconditional-peer-ids = ""
  225. # Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
  226. # TODO: Remove once p2p refactor is complete
  227. # ref: https:#github.com/tendermint/tendermint/issues/5670
  228. persistent-peers-max-dial-period = "0s"
  229. # Time to wait before flushing messages out on the connection
  230. # TODO: Remove once p2p refactor is complete
  231. # ref: https:#github.com/tendermint/tendermint/issues/5670
  232. flush-throttle-timeout = "100ms"
  233. # Maximum size of a message packet payload, in bytes
  234. # TODO: Remove once p2p refactor is complete
  235. # ref: https:#github.com/tendermint/tendermint/issues/5670
  236. max-packet-msg-payload-size = 1400
  237. # Rate at which packets can be sent, in bytes/second
  238. # TODO: Remove once p2p refactor is complete
  239. # ref: https:#github.com/tendermint/tendermint/issues/5670
  240. send-rate = 5120000
  241. # Rate at which packets can be received, in bytes/second
  242. # TODO: Remove once p2p refactor is complete
  243. # ref: https:#github.com/tendermint/tendermint/issues/5670
  244. recv-rate = 5120000
  245. # Set true to enable the peer-exchange reactor
  246. pex = true
  247. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  248. # Warning: IPs will be exposed at /net_info, for more information https://github.com/tendermint/tendermint/issues/3055
  249. private-peer-ids = ""
  250. # Toggle to disable guard against peers connecting from the same ip.
  251. allow-duplicate-ip = false
  252. # Peer connection configuration.
  253. handshake-timeout = "20s"
  254. dial-timeout = "3s"
  255. #######################################################
  256. ### Mempool Configuration Option ###
  257. #######################################################
  258. [mempool]
  259. # Mempool version to use:
  260. # 1) "v0" - The legacy non-prioritized mempool reactor.
  261. # 2) "v1" (default) - The prioritized mempool reactor.
  262. version = "v1"
  263. recheck = true
  264. broadcast = true
  265. # Maximum number of transactions in the mempool
  266. size = 5000
  267. # Limit the total size of all txs in the mempool.
  268. # This only accounts for raw transactions (e.g. given 1MB transactions and
  269. # max-txs-bytes=5MB, mempool will only accept 5 transactions).
  270. max-txs-bytes = 1073741824
  271. # Size of the cache (used to filter transactions we saw earlier) in transactions
  272. cache-size = 10000
  273. # Do not remove invalid transactions from the cache (default: false)
  274. # Set to true if it's not possible for any invalid transaction to become valid
  275. # again in the future.
  276. keep-invalid-txs-in-cache = false
  277. # Maximum size of a single transaction.
  278. # NOTE: the max size of a tx transmitted over the network is {max-tx-bytes}.
  279. max-tx-bytes = 1048576
  280. # Maximum size of a batch of transactions to send to a peer
  281. # Including space needed by encoding (one varint per transaction).
  282. # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
  283. max-batch-bytes = 0
  284. # ttl-duration, if non-zero, defines the maximum amount of time a transaction
  285. # can exist for in the mempool.
  286. #
  287. # Note, if ttl-num-blocks is also defined, a transaction will be removed if it
  288. # has existed in the mempool at least ttl-num-blocks number of blocks or if it's
  289. # insertion time into the mempool is beyond ttl-duration.
  290. ttl-duration = "0s"
  291. # ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction
  292. # can exist for in the mempool.
  293. #
  294. # Note, if ttl-duration is also defined, a transaction will be removed if it
  295. # has existed in the mempool at least ttl-num-blocks number of blocks or if
  296. # it's insertion time into the mempool is beyond ttl-duration.
  297. ttl-num-blocks = 0
  298. #######################################################
  299. ### State Sync Configuration Options ###
  300. #######################################################
  301. [statesync]
  302. # State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
  303. # snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
  304. # the network to take and serve state machine snapshots. State sync is not attempted if the node
  305. # has any local state (LastBlockHeight > 0). The node will have a truncated block history,
  306. # starting from the height of the snapshot.
  307. enable = false
  308. # RPC servers (comma-separated) for light client verification of the synced state machine and
  309. # retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
  310. # header hash obtained from a trusted source, and a period during which validators can be trusted.
  311. #
  312. # For Cosmos SDK-based chains, trust-period should usually be about 2/3 of the unbonding time (~2
  313. # weeks) during which they can be financially punished (slashed) for misbehavior.
  314. rpc-servers = ""
  315. trust-height = 0
  316. trust-hash = ""
  317. trust-period = "168h0m0s"
  318. # Time to spend discovering snapshots before initiating a restore.
  319. discovery-time = "15s"
  320. # Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
  321. # Will create a new, randomly named directory within, and remove it when done.
  322. temp-dir = ""
  323. # The timeout duration before re-requesting a chunk, possibly from a different
  324. # peer (default: 15 seconds).
  325. chunk-request-timeout = "15s"
  326. # The number of concurrent chunk and block fetchers to run (default: 4).
  327. fetchers = "4"
  328. #######################################################
  329. ### Block Sync Configuration Connections ###
  330. #######################################################
  331. [blocksync]
  332. # If this node is many blocks behind the tip of the chain, BlockSync
  333. # allows them to catchup quickly by downloading blocks in parallel
  334. # and verifying their commits
  335. enable = true
  336. # Block Sync version to use:
  337. # 1) "v0" (default) - the standard block sync implementation
  338. # 2) "v2" - DEPRECATED, please use v0
  339. version = "v0"
  340. #######################################################
  341. ### Consensus Configuration Options ###
  342. #######################################################
  343. [consensus]
  344. wal-file = "data/cs.wal/wal"
  345. # How long we wait for a proposal block before prevoting nil
  346. timeout-propose = "3s"
  347. # How much timeout-propose increases with each round
  348. timeout-propose-delta = "500ms"
  349. # How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
  350. timeout-prevote = "1s"
  351. # How much the timeout-prevote increases with each round
  352. timeout-prevote-delta = "500ms"
  353. # How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
  354. timeout-precommit = "1s"
  355. # How much the timeout-precommit increases with each round
  356. timeout-precommit-delta = "500ms"
  357. # How long we wait after committing a block, before starting on the new
  358. # height (this gives us a chance to receive some more precommits, even
  359. # though we already have +2/3).
  360. timeout-commit = "1s"
  361. # How many blocks to look back to check existence of the node's consensus votes before joining consensus
  362. # When non-zero, the node will panic upon restart
  363. # if the same consensus key was used to sign {double-sign-check-height} last blocks.
  364. # So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
  365. double-sign-check-height = 0
  366. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  367. skip-timeout-commit = false
  368. # EmptyBlocks mode and possible interval between empty blocks
  369. create-empty-blocks = true
  370. create-empty-blocks-interval = "0s"
  371. # Reactor sleep duration parameters
  372. peer-gossip-sleep-duration = "100ms"
  373. peer-query-maj23-sleep-duration = "2s"
  374. #######################################################
  375. ### Transaction Indexer Configuration Options ###
  376. #######################################################
  377. [tx-index]
  378. # The backend database list to back the indexer.
  379. # If list contains "null" or "", meaning no indexer service will be used.
  380. #
  381. # The application will set which txs to index. In some cases a node operator will be able
  382. # to decide which txs to index based on configuration set in the application.
  383. #
  384. # Options:
  385. # 1) "null"
  386. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  387. # 3) "psql" - the indexer services backed by PostgreSQL.
  388. # When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed.
  389. indexer = ["kv"]
  390. # The PostgreSQL connection configuration, the connection format:
  391. # postgresql://<user>:<password>@<host>:<port>/<db>?<opts>
  392. psql-conn = ""
  393. #######################################################
  394. ### Instrumentation Configuration Options ###
  395. #######################################################
  396. [instrumentation]
  397. # When true, Prometheus metrics are served under /metrics on
  398. # PrometheusListenAddr.
  399. # Check out the documentation for the list of available metrics.
  400. prometheus = false
  401. # Address to listen for Prometheus collector(s) connections
  402. prometheus-listen-addr = ":26660"
  403. # Maximum number of simultaneous connections.
  404. # If you want to accept a larger number than the default, make sure
  405. # you increase your OS limits.
  406. # 0 - unlimited.
  407. max-open-connections = 3
  408. # Instrumentation namespace
  409. namespace = "tendermint"
  410. ```
  411. ## Empty blocks VS no empty blocks
  412. ### create-empty-blocks = true
  413. If `create-empty-blocks` is set to `true` in your config, blocks will be
  414. created ~ every second (with default consensus parameters). You can regulate
  415. the delay between blocks by changing the `timeout-commit`. E.g. `timeout-commit = "10s"` should result in ~ 10 second blocks.
  416. ### create-empty-blocks = false
  417. In this setting, blocks are created when transactions received.
  418. Note after the block H, Tendermint creates something we call a "proof block"
  419. (only if the application hash changed) H+1. The reason for this is to support
  420. proofs. If you have a transaction in block H that changes the state to X, the
  421. new application hash will only be included in block H+1. If after your
  422. transaction is committed, you want to get a light-client proof for the new state
  423. (X), you need the new block to be committed in order to do that because the new
  424. block has the new application hash for the state X. That's why we make a new
  425. (empty) block if the application hash changes. Otherwise, you won't be able to
  426. make a proof for the new state.
  427. Plus, if you set `create-empty-blocks-interval` to something other than the
  428. default (`0`), Tendermint will be creating empty blocks even in the absence of
  429. transactions every `create-empty-blocks-interval`. For instance, with
  430. `create-empty-blocks = false` and `create-empty-blocks-interval = "30s"`,
  431. Tendermint will only create blocks if there are transactions, or after waiting
  432. 30 seconds without receiving any transactions.
  433. ## Consensus timeouts explained
  434. There's a variety of information about timeouts in [Running in
  435. production](../tendermint-core/running-in-production.md)
  436. You can also find more detailed technical explanation in the spec: [The latest
  437. gossip on BFT consensus](https://arxiv.org/abs/1807.04938).
  438. ```toml
  439. [consensus]
  440. ...
  441. timeout-propose = "3s"
  442. timeout-propose-delta = "500ms"
  443. timeout-prevote = "1s"
  444. timeout-prevote-delta = "500ms"
  445. timeout-precommit = "1s"
  446. timeout-precommit-delta = "500ms"
  447. timeout-commit = "1s"
  448. ```
  449. Note that in a successful round, the only timeout that we absolutely wait no
  450. matter what is `timeout-commit`.
  451. Here's a brief summary of the timeouts:
  452. - `timeout-propose` = how long we wait for a proposal block before prevoting
  453. nil
  454. - `timeout-propose-delta` = how much timeout-propose increases with each round
  455. - `timeout-prevote` = how long we wait after receiving +2/3 prevotes for
  456. anything (ie. not a single block or nil)
  457. - `timeout-prevote-delta` = how much the timeout-prevote increases with each
  458. round
  459. - `timeout-precommit` = how long we wait after receiving +2/3 precommits for
  460. anything (ie. not a single block or nil)
  461. - `timeout-precommit-delta` = how much the timeout-precommit increases with
  462. each round
  463. - `timeout-commit` = how long we wait after committing a block, before starting
  464. on the new height (this gives us a chance to receive some more precommits,
  465. even though we already have +2/3)
  466. ## P2P settings
  467. This section will cover settings within the p2p section of the `config.toml`.
  468. - `external-address` = is the address that will be advertised for other nodes to use. We recommend setting this field with your public IP and p2p port.
  469. - > We recommend setting an external address. When used in a private network, Tendermint Core currently doesn't advertise the node's public address. There is active and ongoing work to improve the P2P system, but this is a helpful workaround for now.
  470. - `persistent-peers` = is a list of comma separated peers that you will always want to be connected to. If you're already connected to the maximum number of peers, persistent peers will not be added.
  471. - `pex` = turns the peer exchange reactor on or off. Validator node will want the `pex` turned off so it would not begin gossiping to unknown peers on the network. PeX can also be turned off for statically configured networks with fixed network connectivity. For full nodes on open, dynamic networks, it should be turned on.
  472. - `private-peer-ids` = is a comma-separated list of node ids that will _not_ be exposed to other peers (i.e., you will not tell other peers about the ids in this list). This can be filled with a validator's node id.
  473. Recently the Tendermint Team conducted a refactor of the p2p layer. This lead to multiple config paramters being deprecated and/or replaced.
  474. We will cover the new and deprecated parameters below.
  475. ### New Parameters
  476. There are three new parameters, which are enabled if use-legacy is set to false.
  477. - `queue-type` = sets a type of queue to use in the p2p layer. There are three options available `fifo`, `priority` and `wdrr`. The default is priority
  478. - `bootstrap-peers` = is a list of comma seperated peers which will be used to bootstrap the address book.
  479. - `max-connections` = is the max amount of allowed inbound and outbound connections.
  480. ### Deprecated Parameters
  481. > Note: For Tendermint 0.35, there are two p2p implementations. The old version is used by deafult with the deprecated fields. The new implementation uses different config parameters, explained above.
  482. - `max-num-inbound-peers` = is the maximum number of peers you will accept inbound connections from at one time (where they dial your address and initiate the connection). *This was replaced by `max-connections`*
  483. - `max-num-outbound-peers` = is the maximum number of peers you will initiate outbound connects to at one time (where you dial their address and initiate the connection).*This was replaced by `max-connections`*
  484. - `unconditional-peer-ids` = is similar to `persistent-peers` except that these peers will be connected to even if you are already connected to the maximum number of peers. This can be a validator node ID on your sentry node. *Deprecated*
  485. - `seeds` = is a list of comma separated seed nodes that you will connect upon a start and ask for peers. A seed node is a node that does not participate in consensus but only helps propagate peers to nodes in the networks *Deprecated, replaced by bootstrap peers*
  486. ## Indexing Settings
  487. Operators can configure indexing via the `[tx_index]` section. The `indexer`
  488. field takes a series of supported indexers. If `null` is included, indexing will
  489. be turned off regardless of other values provided.
  490. ### Supported Indexers
  491. #### KV
  492. The `kv` indexer type is an embedded key-value store supported by the main
  493. underlying Tendermint database. Using the `kv` indexer type allows you to query
  494. for block and transaction events directly against Tendermint's RPC. However, the
  495. query syntax is limited and so this indexer type might be deprecated or removed
  496. entirely in the future.
  497. #### PostgreSQL
  498. The `psql` indexer type allows an operator to enable block and transaction event
  499. indexing by proxying it to an external PostgreSQL instance allowing for the events
  500. to be stored in relational models. Since the events are stored in a RDBMS, operators
  501. can leverage SQL to perform a series of rich and complex queries that are not
  502. supported by the `kv` indexer type. Since operators can leverage SQL directly,
  503. searching is not enabled for the `psql` indexer type via Tendermint's RPC -- any
  504. such query will fail.
  505. Note, the SQL schema is stored in `state/indexer/sink/psql/schema.sql` and operators
  506. must explicitly create the relations prior to starting Tendermint and enabling
  507. the `psql` indexer type.
  508. Example:
  509. ```shell
  510. $ psql ... -f state/indexer/sink/psql/schema.sql
  511. ```