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.

200 lines
5.7 KiB

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