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.

224 lines
6.7 KiB

6 years ago
  1. # Configuration
  2. Tendermint Core can be configured via a TOML file in
  3. `$TMHOME/config/config.toml`. Some of these parameters can be overridden by
  4. command-line flags. For most users, the options in the `##### main base configuration options #####` are intended to be modified while
  5. config options further below are intended for advance power users.
  6. ## Options
  7. The default configuration file create by `tendermint init` has all
  8. the parameters set with their default values. It will look something
  9. like the file below, however, double check by inspecting the
  10. `config.toml` created with your version of `tendermint` installed:
  11. ```
  12. # This is a TOML config file.
  13. # For more information, see https://github.com/toml-lang/toml
  14. ##### main base config options #####
  15. # TCP or UNIX socket address of the ABCI application,
  16. # or the name of an ABCI application compiled in with the Tendermint binary
  17. proxy_app = "tcp://127.0.0.1:26658"
  18. # A custom human readable name for this node
  19. moniker = "anonymous"
  20. # If this node is many blocks behind the tip of the chain, FastSync
  21. # allows them to catchup quickly by downloading blocks in parallel
  22. # and verifying their commits
  23. fast_sync = true
  24. # Database backend: leveldb | memdb
  25. db_backend = "leveldb"
  26. # Database directory
  27. db_path = "data"
  28. # Output level for logging
  29. log_level = "state:info,*:error"
  30. ##### additional base config options #####
  31. # The ID of the chain to join (should be signed with every transaction and vote)
  32. chain_id = ""
  33. # Path to the JSON file containing the initial validator set and other meta data
  34. genesis_file = "genesis.json"
  35. # Path to the JSON file containing the private key to use as a validator in the consensus protocol
  36. priv_validator_file = "priv_validator.json"
  37. # Mechanism to connect to the ABCI application: socket | grpc
  38. abci = "socket"
  39. # TCP or UNIX socket address for the profiling server to listen on
  40. prof_laddr = ""
  41. # If true, query the ABCI app on connecting to a new peer
  42. # so the app can decide if we should keep the connection or not
  43. filter_peers = false
  44. ##### advanced configuration options #####
  45. ##### rpc server configuration options #####
  46. [rpc]
  47. # TCP or UNIX socket address for the RPC server to listen on
  48. laddr = "tcp://0.0.0.0:26657"
  49. # TCP or UNIX socket address for the gRPC server to listen on
  50. # NOTE: This server only supports /broadcast_tx_commit
  51. grpc_laddr = ""
  52. # Maximum number of simultaneous connections.
  53. # Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
  54. # If you want to accept more significant number than the default, make sure
  55. # you increase your OS limits.
  56. # 0 - unlimited.
  57. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  58. # 1024 - 40 - 10 - 50 = 924 = ~900
  59. grpc_max_open_connections = 900
  60. # Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
  61. unsafe = false
  62. # Maximum number of simultaneous connections (including WebSocket).
  63. # Does not include gRPC connections. See grpc_max_open_connections
  64. # If you want to accept more significant number than the default, make sure
  65. # you increase your OS limits.
  66. # 0 - unlimited.
  67. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  68. # 1024 - 40 - 10 - 50 = 924 = ~900
  69. max_open_connections = 900
  70. ##### peer to peer configuration options #####
  71. [p2p]
  72. # Address to listen for incoming connections
  73. laddr = "tcp://0.0.0.0:26656"
  74. # Comma separated list of seed nodes to connect to
  75. seeds = ""
  76. # Comma separated list of nodes to keep persistent connections to
  77. persistent_peers = ""
  78. # UPNP port forwarding
  79. upnp = false
  80. # Path to address book
  81. addr_book_file = "addrbook.json"
  82. # Set true for strict address routability rules
  83. addr_book_strict = true
  84. # Time to wait before flushing messages out on the connection, in ms
  85. flush_throttle_timeout = 100
  86. # Maximum number of inbound peers
  87. max_num_inbound_peers = 40
  88. # Maximum number of outbound peers to connect to, excluding persistent peers
  89. max_num_outbound_peers = 10
  90. # Maximum size of a message packet payload, in bytes
  91. max_packet_msg_payload_size = 1024
  92. # Rate at which packets can be sent, in bytes/second
  93. send_rate = 5120000
  94. # Rate at which packets can be received, in bytes/second
  95. recv_rate = 5120000
  96. # Set true to enable the peer-exchange reactor
  97. pex = true
  98. # Seed mode, in which node constantly crawls the network and looks for
  99. # peers. If another node asks it for addresses, it responds and disconnects.
  100. #
  101. # Does not work if the peer-exchange reactor is disabled.
  102. seed_mode = false
  103. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  104. private_peer_ids = ""
  105. ##### mempool configuration options #####
  106. [mempool]
  107. recheck = true
  108. recheck_empty = true
  109. broadcast = true
  110. wal_dir = "data/mempool.wal"
  111. # size of the mempool
  112. size = 100000
  113. # size of the cache (used to filter transactions we saw earlier)
  114. cache_size = 100000
  115. ##### consensus configuration options #####
  116. [consensus]
  117. wal_file = "data/cs.wal/wal"
  118. # All timeouts are in milliseconds
  119. timeout_propose = 3000
  120. timeout_propose_delta = 500
  121. timeout_prevote = 1000
  122. timeout_prevote_delta = 500
  123. timeout_precommit = 1000
  124. timeout_precommit_delta = 500
  125. timeout_commit = 1000
  126. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  127. skip_timeout_commit = false
  128. # EmptyBlocks mode and possible interval between empty blocks in seconds
  129. create_empty_blocks = true
  130. create_empty_blocks_interval = 0
  131. # Reactor sleep duration parameters are in milliseconds
  132. peer_gossip_sleep_duration = 100
  133. peer_query_maj23_sleep_duration = 2000
  134. ##### transactions indexer configuration options #####
  135. [tx_index]
  136. # What indexer to use for transactions
  137. #
  138. # Options:
  139. # 1) "null"
  140. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  141. indexer = "kv"
  142. # Comma-separated list of tags to index (by default the only tag is tx hash)
  143. #
  144. # It's recommended to index only a subset of tags due to possible memory
  145. # bloat. This is, of course, depends on the indexer's DB and the volume of
  146. # transactions.
  147. index_tags = ""
  148. # When set to true, tells indexer to index all tags. Note this may be not
  149. # desirable (see the comment above). IndexTags has a precedence over
  150. # IndexAllTags (i.e. when given both, IndexTags will be indexed).
  151. index_all_tags = false
  152. ##### instrumentation configuration options #####
  153. [instrumentation]
  154. # When true, Prometheus metrics are served under /metrics on
  155. # PrometheusListenAddr.
  156. # Check out the documentation for the list of available metrics.
  157. prometheus = false
  158. # Address to listen for Prometheus collector(s) connections
  159. prometheus_listen_addr = ":26660"
  160. # Maximum number of simultaneous connections.
  161. # If you want to accept a more significant number than the default, make sure
  162. # you increase your OS limits.
  163. # 0 - unlimited.
  164. max_open_connections = 3
  165. ```