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.

650 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. # Select the p2p internal queue
  175. queue-type = "priority"
  176. # Address to listen for incoming connections
  177. laddr = "tcp://0.0.0.0:26656"
  178. # Address to advertise to peers for them to dial
  179. # If empty, will use the same port as the laddr,
  180. # and will introspect on the listener or use UPnP
  181. # to figure out the address. ip and port are required
  182. # example: 159.89.10.97:26656
  183. external-address = ""
  184. # Comma separated list of seed nodes to connect to
  185. # We only use these if we can’t connect to peers in the addrbook
  186. # NOTE: not used by the new PEX reactor. Please use BootstrapPeers instead.
  187. # TODO: Remove once p2p refactor is complete
  188. # ref: https:#github.com/tendermint/tendermint/issues/5670
  189. seeds = ""
  190. # Comma separated list of peers to be added to the peer store
  191. # on startup. Either BootstrapPeers or PersistentPeers are
  192. # needed for peer discovery
  193. bootstrap-peers = ""
  194. # Comma separated list of nodes to keep persistent connections to
  195. persistent-peers = ""
  196. # UPNP port forwarding
  197. upnp = false
  198. # Path to address book
  199. # TODO: Remove once p2p refactor is complete
  200. # ref: https:#github.com/tendermint/tendermint/issues/5670
  201. addr-book-file = "config/addrbook.json"
  202. # Set true for strict address routability rules
  203. # Set false for private or local networks
  204. addr-book-strict = true
  205. # Maximum number of inbound peers
  206. #
  207. # TODO: Remove once p2p refactor is complete in favor of MaxConnections.
  208. # ref: https://github.com/tendermint/tendermint/issues/5670
  209. max-num-inbound-peers = 40
  210. # Maximum number of outbound peers to connect to, excluding persistent peers
  211. #
  212. # TODO: Remove once p2p refactor is complete in favor of MaxConnections.
  213. # ref: https://github.com/tendermint/tendermint/issues/5670
  214. max-num-outbound-peers = 10
  215. # Maximum number of connections (inbound and outbound).
  216. max-connections = 64
  217. # Rate limits the number of incoming connection attempts per IP address.
  218. max-incoming-connection-attempts = 100
  219. # List of node IDs, to which a connection will be (re)established ignoring any existing limits
  220. # TODO: Remove once p2p refactor is complete
  221. # ref: https:#github.com/tendermint/tendermint/issues/5670
  222. unconditional-peer-ids = ""
  223. # Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
  224. # TODO: Remove once p2p refactor is complete
  225. # ref: https:#github.com/tendermint/tendermint/issues/5670
  226. persistent-peers-max-dial-period = "0s"
  227. # Time to wait before flushing messages out on the connection
  228. # TODO: Remove once p2p refactor is complete
  229. # ref: https:#github.com/tendermint/tendermint/issues/5670
  230. flush-throttle-timeout = "100ms"
  231. # Maximum size of a message packet payload, in bytes
  232. # TODO: Remove once p2p refactor is complete
  233. # ref: https:#github.com/tendermint/tendermint/issues/5670
  234. max-packet-msg-payload-size = 1400
  235. # Rate at which packets can be sent, in bytes/second
  236. # TODO: Remove once p2p refactor is complete
  237. # ref: https:#github.com/tendermint/tendermint/issues/5670
  238. send-rate = 5120000
  239. # Rate at which packets can be received, in bytes/second
  240. # TODO: Remove once p2p refactor is complete
  241. # ref: https:#github.com/tendermint/tendermint/issues/5670
  242. recv-rate = 5120000
  243. # Set true to enable the peer-exchange reactor
  244. pex = true
  245. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  246. # Warning: IPs will be exposed at /net_info, for more information https://github.com/tendermint/tendermint/issues/3055
  247. private-peer-ids = ""
  248. # Toggle to disable guard against peers connecting from the same ip.
  249. allow-duplicate-ip = false
  250. # Peer connection configuration.
  251. handshake-timeout = "20s"
  252. dial-timeout = "3s"
  253. #######################################################
  254. ### Mempool Configuration Option ###
  255. #######################################################
  256. [mempool]
  257. # Mempool version to use:
  258. # 1) "v0" - The legacy non-prioritized mempool reactor.
  259. # 2) "v1" (default) - The prioritized mempool reactor.
  260. version = "v1"
  261. recheck = true
  262. broadcast = true
  263. # Maximum number of transactions in the mempool
  264. size = 5000
  265. # Limit the total size of all txs in the mempool.
  266. # This only accounts for raw transactions (e.g. given 1MB transactions and
  267. # max-txs-bytes=5MB, mempool will only accept 5 transactions).
  268. max-txs-bytes = 1073741824
  269. # Size of the cache (used to filter transactions we saw earlier) in transactions
  270. cache-size = 10000
  271. # Do not remove invalid transactions from the cache (default: false)
  272. # Set to true if it's not possible for any invalid transaction to become valid
  273. # again in the future.
  274. keep-invalid-txs-in-cache = false
  275. # Maximum size of a single transaction.
  276. # NOTE: the max size of a tx transmitted over the network is {max-tx-bytes}.
  277. max-tx-bytes = 1048576
  278. # Maximum size of a batch of transactions to send to a peer
  279. # Including space needed by encoding (one varint per transaction).
  280. # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
  281. max-batch-bytes = 0
  282. # ttl-duration, if non-zero, defines the maximum amount of time a transaction
  283. # can exist for in the mempool.
  284. #
  285. # Note, if ttl-num-blocks is also defined, a transaction will be removed if it
  286. # has existed in the mempool at least ttl-num-blocks number of blocks or if it's
  287. # insertion time into the mempool is beyond ttl-duration.
  288. ttl-duration = "0s"
  289. # ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction
  290. # can exist for in the mempool.
  291. #
  292. # Note, if ttl-duration is also defined, a transaction will be removed if it
  293. # has existed in the mempool at least ttl-num-blocks number of blocks or if
  294. # it's insertion time into the mempool is beyond ttl-duration.
  295. ttl-num-blocks = 0
  296. #######################################################
  297. ### State Sync Configuration Options ###
  298. #######################################################
  299. [statesync]
  300. # State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
  301. # snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
  302. # the network to take and serve state machine snapshots. State sync is not attempted if the node
  303. # has any local state (LastBlockHeight > 0). The node will have a truncated block history,
  304. # starting from the height of the snapshot.
  305. enable = false
  306. # RPC servers (comma-separated) for light client verification of the synced state machine and
  307. # retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
  308. # header hash obtained from a trusted source, and a period during which validators can be trusted.
  309. #
  310. # For Cosmos SDK-based chains, trust-period should usually be about 2/3 of the unbonding time (~2
  311. # weeks) during which they can be financially punished (slashed) for misbehavior.
  312. rpc-servers = ""
  313. trust-height = 0
  314. trust-hash = ""
  315. trust-period = "168h0m0s"
  316. # Time to spend discovering snapshots before initiating a restore.
  317. discovery-time = "15s"
  318. # Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
  319. # Will create a new, randomly named directory within, and remove it when done.
  320. temp-dir = ""
  321. # The timeout duration before re-requesting a chunk, possibly from a different
  322. # peer (default: 15 seconds).
  323. chunk-request-timeout = "15s"
  324. # The number of concurrent chunk and block fetchers to run (default: 4).
  325. fetchers = "4"
  326. #######################################################
  327. ### Block Sync Configuration Connections ###
  328. #######################################################
  329. [blocksync]
  330. # If this node is many blocks behind the tip of the chain, BlockSync
  331. # allows them to catchup quickly by downloading blocks in parallel
  332. # and verifying their commits
  333. enable = true
  334. # Block Sync version to use:
  335. # 1) "v0" (default) - the standard block sync implementation
  336. # 2) "v2" - DEPRECATED, please use v0
  337. version = "v0"
  338. #######################################################
  339. ### Consensus Configuration Options ###
  340. #######################################################
  341. [consensus]
  342. wal-file = "data/cs.wal/wal"
  343. # How long we wait for a proposal block before prevoting nil
  344. timeout-propose = "3s"
  345. # How much timeout-propose increases with each round
  346. timeout-propose-delta = "500ms"
  347. # How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
  348. timeout-prevote = "1s"
  349. # How much the timeout-prevote increases with each round
  350. timeout-prevote-delta = "500ms"
  351. # How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
  352. timeout-precommit = "1s"
  353. # How much the timeout-precommit increases with each round
  354. timeout-precommit-delta = "500ms"
  355. # How long we wait after committing a block, before starting on the new
  356. # height (this gives us a chance to receive some more precommits, even
  357. # though we already have +2/3).
  358. timeout-commit = "1s"
  359. # How many blocks to look back to check existence of the node's consensus votes before joining consensus
  360. # When non-zero, the node will panic upon restart
  361. # if the same consensus key was used to sign {double-sign-check-height} last blocks.
  362. # So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
  363. double-sign-check-height = 0
  364. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  365. skip-timeout-commit = false
  366. # EmptyBlocks mode and possible interval between empty blocks
  367. create-empty-blocks = true
  368. create-empty-blocks-interval = "0s"
  369. # Reactor sleep duration parameters
  370. peer-gossip-sleep-duration = "100ms"
  371. peer-query-maj23-sleep-duration = "2s"
  372. #######################################################
  373. ### Transaction Indexer Configuration Options ###
  374. #######################################################
  375. [tx-index]
  376. # The backend database list to back the indexer.
  377. # If list contains "null" or "", meaning no indexer service will be used.
  378. #
  379. # The application will set which txs to index. In some cases a node operator will be able
  380. # to decide which txs to index based on configuration set in the application.
  381. #
  382. # Options:
  383. # 1) "null"
  384. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  385. # 3) "psql" - the indexer services backed by PostgreSQL.
  386. # When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed.
  387. indexer = ["kv"]
  388. # The PostgreSQL connection configuration, the connection format:
  389. # postgresql://<user>:<password>@<host>:<port>/<db>?<opts>
  390. psql-conn = ""
  391. #######################################################
  392. ### Instrumentation Configuration Options ###
  393. #######################################################
  394. [instrumentation]
  395. # When true, Prometheus metrics are served under /metrics on
  396. # PrometheusListenAddr.
  397. # Check out the documentation for the list of available metrics.
  398. prometheus = false
  399. # Address to listen for Prometheus collector(s) connections
  400. prometheus-listen-addr = ":26660"
  401. # Maximum number of simultaneous connections.
  402. # If you want to accept a larger number than the default, make sure
  403. # you increase your OS limits.
  404. # 0 - unlimited.
  405. max-open-connections = 3
  406. # Instrumentation namespace
  407. namespace = "tendermint"
  408. ```
  409. ## Empty blocks VS no empty blocks
  410. ### create-empty-blocks = true
  411. If `create-empty-blocks` is set to `true` in your config, blocks will be
  412. created ~ every second (with default consensus parameters). You can regulate
  413. the delay between blocks by changing the `timeout-commit`. E.g. `timeout-commit = "10s"` should result in ~ 10 second blocks.
  414. ### create-empty-blocks = false
  415. In this setting, blocks are created when transactions received.
  416. Note after the block H, Tendermint creates something we call a "proof block"
  417. (only if the application hash changed) H+1. The reason for this is to support
  418. proofs. If you have a transaction in block H that changes the state to X, the
  419. new application hash will only be included in block H+1. If after your
  420. transaction is committed, you want to get a light-client proof for the new state
  421. (X), you need the new block to be committed in order to do that because the new
  422. block has the new application hash for the state X. That's why we make a new
  423. (empty) block if the application hash changes. Otherwise, you won't be able to
  424. make a proof for the new state.
  425. Plus, if you set `create-empty-blocks-interval` to something other than the
  426. default (`0`), Tendermint will be creating empty blocks even in the absence of
  427. transactions every `create-empty-blocks-interval`. For instance, with
  428. `create-empty-blocks = false` and `create-empty-blocks-interval = "30s"`,
  429. Tendermint will only create blocks if there are transactions, or after waiting
  430. 30 seconds without receiving any transactions.
  431. ## Consensus timeouts explained
  432. There's a variety of information about timeouts in [Running in
  433. production](../tendermint-core/running-in-production.md)
  434. You can also find more detailed technical explanation in the spec: [The latest
  435. gossip on BFT consensus](https://arxiv.org/abs/1807.04938).
  436. ```toml
  437. [consensus]
  438. ...
  439. timeout-propose = "3s"
  440. timeout-propose-delta = "500ms"
  441. timeout-prevote = "1s"
  442. timeout-prevote-delta = "500ms"
  443. timeout-precommit = "1s"
  444. timeout-precommit-delta = "500ms"
  445. timeout-commit = "1s"
  446. ```
  447. Note that in a successful round, the only timeout that we absolutely wait no
  448. matter what is `timeout-commit`.
  449. Here's a brief summary of the timeouts:
  450. - `timeout-propose` = how long we wait for a proposal block before prevoting
  451. nil
  452. - `timeout-propose-delta` = how much timeout-propose increases with each round
  453. - `timeout-prevote` = how long we wait after receiving +2/3 prevotes for
  454. anything (ie. not a single block or nil)
  455. - `timeout-prevote-delta` = how much the timeout-prevote increases with each
  456. round
  457. - `timeout-precommit` = how long we wait after receiving +2/3 precommits for
  458. anything (ie. not a single block or nil)
  459. - `timeout-precommit-delta` = how much the timeout-precommit increases with
  460. each round
  461. - `timeout-commit` = how long we wait after committing a block, before starting
  462. on the new height (this gives us a chance to receive some more precommits,
  463. even though we already have +2/3)
  464. ## P2P settings
  465. This section will cover settings within the p2p section of the `config.toml`.
  466. - `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.
  467. - > 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.
  468. - `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.
  469. - `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.
  470. - `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.
  471. Recently the Tendermint Team conducted a refactor of the p2p layer. This lead to multiple config paramters being deprecated and/or replaced.
  472. We will cover the new and deprecated parameters below.
  473. ### New Parameters
  474. There are three new parameters, which are enabled if use-legacy is set to false.
  475. - `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
  476. - `bootstrap-peers` = is a list of comma seperated peers which will be used to bootstrap the address book.
  477. - `max-connections` = is the max amount of allowed inbound and outbound connections.
  478. ### Deprecated Parameters
  479. > Note: For Tendermint 0.35, there are two p2p implementations. The old version is used by default with the deprecated fields. The new implementation uses different config parameters, explained above.
  480. - `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`*
  481. - `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`*
  482. - `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*
  483. - `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*
  484. ## Indexing Settings
  485. Operators can configure indexing via the `[tx_index]` section. The `indexer`
  486. field takes a series of supported indexers. If `null` is included, indexing will
  487. be turned off regardless of other values provided.
  488. ### Supported Indexers
  489. #### KV
  490. The `kv` indexer type is an embedded key-value store supported by the main
  491. underlying Tendermint database. Using the `kv` indexer type allows you to query
  492. for block and transaction events directly against Tendermint's RPC. However, the
  493. query syntax is limited and so this indexer type might be deprecated or removed
  494. entirely in the future.
  495. #### PostgreSQL
  496. The `psql` indexer type allows an operator to enable block and transaction event
  497. indexing by proxying it to an external PostgreSQL instance allowing for the events
  498. to be stored in relational models. Since the events are stored in a RDBMS, operators
  499. can leverage SQL to perform a series of rich and complex queries that are not
  500. supported by the `kv` indexer type. Since operators can leverage SQL directly,
  501. searching is not enabled for the `psql` indexer type via Tendermint's RPC -- any
  502. such query will fail.
  503. Note, the SQL schema is stored in `state/indexer/sink/psql/schema.sql` and operators
  504. must explicitly create the relations prior to starting Tendermint and enabling
  505. the `psql` indexer type.
  506. Example:
  507. ```shell
  508. $ psql ... -f state/indexer/sink/psql/schema.sql
  509. ```