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.

252 lines
7.6 KiB

7 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 | cleveldb
  25. db_backend = "leveldb"
  26. # Database directory
  27. db_dir = "data"
  28. # Output level for logging
  29. log_level = "state:info,*:error"
  30. # Output format: 'plain' (colored text) or 'json'
  31. log_format = "plain"
  32. ##### additional base config options #####
  33. # The ID of the chain to join (should be signed with every transaction and vote)
  34. chain_id = ""
  35. # Path to the JSON file containing the initial validator set and other meta data
  36. genesis_file = "genesis.json"
  37. # Path to the JSON file containing the private key to use as a validator in the consensus protocol
  38. priv_validator_file = "priv_validator.json"
  39. # Mechanism to connect to the ABCI application: socket | grpc
  40. abci = "socket"
  41. # TCP or UNIX socket address for the profiling server to listen on
  42. prof_laddr = ""
  43. # If true, query the ABCI app on connecting to a new peer
  44. # so the app can decide if we should keep the connection or not
  45. filter_peers = false
  46. ##### advanced configuration options #####
  47. ##### rpc server configuration options #####
  48. [rpc]
  49. # TCP or UNIX socket address for the RPC server to listen on
  50. laddr = "tcp://0.0.0.0:26657"
  51. # A list of origins a cross-domain request can be executed from
  52. # Default value '[]' disables cors support
  53. # Use '["*"]' to allow any origin
  54. cors_allowed_origins = "[]"
  55. # A list of methods the client is allowed to use with cross-domain requests
  56. cors_allowed_methods = "[HEAD GET POST]"
  57. # A list of non simple headers the client is allowed to use with cross-domain requests
  58. cors_allowed_headers = "[Origin Accept Content-Type X-Requested-With X-Server-Time]"
  59. # TCP or UNIX socket address for the gRPC server to listen on
  60. # NOTE: This server only supports /broadcast_tx_commit
  61. grpc_laddr = ""
  62. # Maximum number of simultaneous connections.
  63. # Does not include RPC (HTTP&WebSocket) connections. See 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. grpc_max_open_connections = 900
  70. # Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
  71. unsafe = false
  72. # Maximum number of simultaneous connections (including WebSocket).
  73. # Does not include gRPC connections. See grpc_max_open_connections
  74. # If you want to accept more significant number than the default, make sure
  75. # you increase your OS limits.
  76. # 0 - unlimited.
  77. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  78. # 1024 - 40 - 10 - 50 = 924 = ~900
  79. max_open_connections = 900
  80. ##### peer to peer configuration options #####
  81. [p2p]
  82. # Address to listen for incoming connections
  83. laddr = "tcp://0.0.0.0:26656"
  84. # Comma separated list of seed nodes to connect to
  85. seeds = ""
  86. # Comma separated list of nodes to keep persistent connections to
  87. persistent_peers = ""
  88. # UPNP port forwarding
  89. upnp = false
  90. # Path to address book
  91. addr_book_file = "addrbook.json"
  92. # Set true for strict address routability rules
  93. # Set false for private or local networks
  94. addr_book_strict = true
  95. # Maximum number of inbound peers
  96. max_num_inbound_peers = 40
  97. # Maximum number of outbound peers to connect to, excluding persistent peers
  98. max_num_outbound_peers = 10
  99. # Time to wait before flushing messages out on the connection
  100. flush_throttle_timeout = "100ms"
  101. # Maximum size of a message packet payload, in bytes
  102. max_packet_msg_payload_size = 1024
  103. # Rate at which packets can be sent, in bytes/second
  104. send_rate = 5120000
  105. # Rate at which packets can be received, in bytes/second
  106. recv_rate = 5120000
  107. # Set true to enable the peer-exchange reactor
  108. pex = true
  109. # Seed mode, in which node constantly crawls the network and looks for
  110. # peers. If another node asks it for addresses, it responds and disconnects.
  111. #
  112. # Does not work if the peer-exchange reactor is disabled.
  113. seed_mode = false
  114. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  115. private_peer_ids = ""
  116. # Toggle to disable guard against peers connecting from the same ip.
  117. allow_duplicate_ip = true
  118. # Peer connection configuration.
  119. handshake_timeout = "20s"
  120. dial_timeout = "3s"
  121. ##### mempool configuration options #####
  122. [mempool]
  123. recheck = true
  124. broadcast = true
  125. wal_dir = "data/mempool.wal"
  126. # size of the mempool
  127. size = 100000
  128. # size of the cache (used to filter transactions we saw earlier)
  129. cache_size = 100000
  130. ##### consensus configuration options #####
  131. [consensus]
  132. wal_file = "data/cs.wal/wal"
  133. timeout_propose = "3000ms"
  134. timeout_propose_delta = "500ms"
  135. timeout_prevote = "1000ms"
  136. timeout_prevote_delta = "500ms"
  137. timeout_precommit = "1000ms"
  138. timeout_precommit_delta = "500ms"
  139. timeout_commit = "1000ms"
  140. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  141. skip_timeout_commit = false
  142. # EmptyBlocks mode and possible interval between empty blocks
  143. create_empty_blocks = true
  144. create_empty_blocks_interval = "0s"
  145. # Reactor sleep duration parameters
  146. peer_gossip_sleep_duration = "100ms"
  147. peer_query_maj23_sleep_duration = "2000ms"
  148. ##### transactions indexer configuration options #####
  149. [tx_index]
  150. # What indexer to use for transactions
  151. #
  152. # Options:
  153. # 1) "null"
  154. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  155. indexer = "kv"
  156. # Comma-separated list of tags to index (by default the only tag is "tx.hash")
  157. #
  158. # You can also index transactions by height by adding "tx.height" tag here.
  159. #
  160. # It's recommended to index only a subset of tags due to possible memory
  161. # bloat. This is, of course, depends on the indexer's DB and the volume of
  162. # transactions.
  163. index_tags = ""
  164. # When set to true, tells indexer to index all tags (predefined tags:
  165. # "tx.hash", "tx.height" and all tags from DeliverTx responses).
  166. #
  167. # Note this may be not desirable (see the comment above). IndexTags has a
  168. # precedence over IndexAllTags (i.e. when given both, IndexTags will be
  169. # indexed).
  170. index_all_tags = false
  171. ##### instrumentation configuration options #####
  172. [instrumentation]
  173. # When true, Prometheus metrics are served under /metrics on
  174. # PrometheusListenAddr.
  175. # Check out the documentation for the list of available metrics.
  176. prometheus = false
  177. # Address to listen for Prometheus collector(s) connections
  178. prometheus_listen_addr = ":26660"
  179. # Maximum number of simultaneous connections.
  180. # If you want to accept a more significant number than the default, make sure
  181. # you increase your OS limits.
  182. # 0 - unlimited.
  183. max_open_connections = 3
  184. # Instrumentation namespace
  185. namespace = "tendermint"
  186. ```