config.toml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. # This is a TOML config file.
  2. # For more information, see https://github.com/toml-lang/toml
  3. # NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
  4. # relative to the home directory (e.g. "data"). The home directory is
  5. # "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
  6. # or --home cmd flag.
  7. #######################################################################
  8. ### Main Base Config Options ###
  9. #######################################################################
  10. # TCP or UNIX socket address of the ABCI application,
  11. # or the name of an ABCI application compiled in with the Tendermint binary
  12. proxy_app = "tcp://127.0.0.1:26658"
  13. # A custom human readable name for this node
  14. moniker = "localterra"
  15. # If this node is many blocks behind the tip of the chain, FastSync
  16. # allows them to catchup quickly by downloading blocks in parallel
  17. # and verifying their commits
  18. fast_sync = true
  19. # Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb
  20. # * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
  21. # - pure go
  22. # - stable
  23. # * cleveldb (uses levigo wrapper)
  24. # - fast
  25. # - requires gcc
  26. # - use cleveldb build tag (go build -tags cleveldb)
  27. # * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)
  28. # - EXPERIMENTAL
  29. # - may be faster is some use-cases (random reads - indexer)
  30. # - use boltdb build tag (go build -tags boltdb)
  31. # * rocksdb (uses github.com/tecbot/gorocksdb)
  32. # - EXPERIMENTAL
  33. # - requires gcc
  34. # - use rocksdb build tag (go build -tags rocksdb)
  35. # * badgerdb (uses github.com/dgraph-io/badger)
  36. # - EXPERIMENTAL
  37. # - use badgerdb build tag (go build -tags badgerdb)
  38. db_backend = "goleveldb"
  39. # Database directory
  40. db_dir = "data"
  41. # Output level for logging, including package level options
  42. log_level = "warn"
  43. # Output format: 'plain' (colored text) or 'json'
  44. log_format = "plain"
  45. ##### additional base config options #####
  46. # Path to the JSON file containing the initial validator set and other meta data
  47. genesis_file = "config/genesis.json"
  48. # Path to the JSON file containing the private key to use as a validator in the consensus protocol
  49. priv_validator_key_file = "config/priv_validator_key.json"
  50. # Path to the JSON file containing the last sign state of a validator
  51. priv_validator_state_file = "data/priv_validator_state.json"
  52. # TCP or UNIX socket address for Tendermint to listen on for
  53. # connections from an external PrivValidator process
  54. priv_validator_laddr = ""
  55. # Path to the JSON file containing the private key to use for node authentication in the p2p protocol
  56. node_key_file = "config/node_key.json"
  57. # Mechanism to connect to the ABCI application: socket | grpc
  58. abci = "socket"
  59. # If true, query the ABCI app on connecting to a new peer
  60. # so the app can decide if we should keep the connection or not
  61. filter_peers = false
  62. #######################################################################
  63. ### Advanced Configuration Options ###
  64. #######################################################################
  65. #######################################################
  66. ### RPC Server Configuration Options ###
  67. #######################################################
  68. [rpc]
  69. # TCP or UNIX socket address for the RPC server to listen on
  70. laddr = "tcp://0.0.0.0:26657"
  71. # A list of origins a cross-domain request can be executed from
  72. # Default value '[]' disables cors support
  73. # Use '["*"]' to allow any origin
  74. cors_allowed_origins = []
  75. # A list of methods the client is allowed to use with cross-domain requests
  76. cors_allowed_methods = ["HEAD", "GET", "POST", ]
  77. # A list of non simple headers the client is allowed to use with cross-domain requests
  78. cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]
  79. # TCP or UNIX socket address for the gRPC server to listen on
  80. # NOTE: This server only supports /broadcast_tx_commit
  81. grpc_laddr = ""
  82. # Maximum number of simultaneous connections.
  83. # Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
  84. # If you want to accept a larger number than the default, make sure
  85. # you increase your OS limits.
  86. # 0 - unlimited.
  87. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  88. # 1024 - 40 - 10 - 50 = 924 = ~900
  89. grpc_max_open_connections = 900
  90. # Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
  91. unsafe = false
  92. # Maximum number of simultaneous connections (including WebSocket).
  93. # Does not include gRPC connections. See grpc_max_open_connections
  94. # If you want to accept a larger number than the default, make sure
  95. # you increase your OS limits.
  96. # 0 - unlimited.
  97. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
  98. # 1024 - 40 - 10 - 50 = 924 = ~900
  99. max_open_connections = 900
  100. # Maximum number of unique clientIDs that can /subscribe
  101. # If you're using /broadcast_tx_commit, set to the estimated maximum number
  102. # of broadcast_tx_commit calls per block.
  103. max_subscription_clients = 100
  104. # Maximum number of unique queries a given client can /subscribe to
  105. # If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to
  106. # the estimated # maximum number of broadcast_tx_commit calls per block.
  107. max_subscriptions_per_client = 5
  108. # Experimental parameter to specify the maximum number of events a node will
  109. # buffer, per subscription, before returning an error and closing the
  110. # subscription. Must be set to at least 100, but higher values will accommodate
  111. # higher event throughput rates (and will use more memory).
  112. experimental_subscription_buffer_size = 200
  113. # Experimental parameter to specify the maximum number of RPC responses that
  114. # can be buffered per WebSocket client. If clients cannot read from the
  115. # WebSocket endpoint fast enough, they will be disconnected, so increasing this
  116. # parameter may reduce the chances of them being disconnected (but will cause
  117. # the node to use more memory).
  118. #
  119. # Must be at least the same as "experimental_subscription_buffer_size",
  120. # otherwise connections could be dropped unnecessarily. This value should
  121. # ideally be somewhat higher than "experimental_subscription_buffer_size" to
  122. # accommodate non-subscription-related RPC responses.
  123. experimental_websocket_write_buffer_size = 200
  124. # If a WebSocket client cannot read fast enough, at present we may
  125. # silently drop events instead of generating an error or disconnecting the
  126. # client.
  127. #
  128. # Enabling this experimental parameter will cause the WebSocket connection to
  129. # be closed instead if it cannot read fast enough, allowing for greater
  130. # predictability in subscription behaviour.
  131. experimental_close_on_slow_client = false
  132. # How long to wait for a tx to be committed during /broadcast_tx_commit.
  133. # WARNING: Using a value larger than 10s will result in increasing the
  134. # global HTTP write timeout, which applies to all connections and endpoints.
  135. # See https://github.com/tendermint/tendermint/issues/3435
  136. timeout_broadcast_tx_commit = "30s"
  137. # Maximum size of request body, in bytes
  138. max_body_bytes = 1000000
  139. # Maximum size of request header, in bytes
  140. max_header_bytes = 1048576
  141. # The path to a file containing certificate that is used to create the HTTPS server.
  142. # Might be either absolute path or path related to Tendermint's config directory.
  143. # If the certificate is signed by a certificate authority,
  144. # the certFile should be the concatenation of the server's certificate, any intermediates,
  145. # and the CA's certificate.
  146. # NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server.
  147. # Otherwise, HTTP server is run.
  148. tls_cert_file = ""
  149. # The path to a file containing matching private key that is used to create the HTTPS server.
  150. # Might be either absolute path or path related to Tendermint's config directory.
  151. # NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server.
  152. # Otherwise, HTTP server is run.
  153. tls_key_file = ""
  154. # pprof listen address (https://golang.org/pkg/net/http/pprof)
  155. pprof_laddr = "localhost:6060"
  156. #######################################################
  157. ### P2P Configuration Options ###
  158. #######################################################
  159. [p2p]
  160. # Address to listen for incoming connections
  161. laddr = "tcp://0.0.0.0:26656"
  162. # Address to advertise to peers for them to dial
  163. # If empty, will use the same port as the laddr,
  164. # and will introspect on the listener or use UPnP
  165. # to figure out the address. ip and port are required
  166. # example: 159.89.10.97:26656
  167. external_address = ""
  168. # Comma separated list of seed nodes to connect to
  169. seeds = ""
  170. # Comma separated list of nodes to keep persistent connections to
  171. persistent_peers = ""
  172. # UPNP port forwarding
  173. upnp = false
  174. # Path to address book
  175. addr_book_file = "config/addrbook.json"
  176. # Set true for strict address routability rules
  177. # Set false for private or local networks
  178. addr_book_strict = true
  179. # Maximum number of inbound peers
  180. max_num_inbound_peers = 40
  181. # Maximum number of outbound peers to connect to, excluding persistent peers
  182. max_num_outbound_peers = 10
  183. # List of node IDs, to which a connection will be (re)established ignoring any existing limits
  184. unconditional_peer_ids = ""
  185. # Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
  186. persistent_peers_max_dial_period = "0s"
  187. # Time to wait before flushing messages out on the connection
  188. flush_throttle_timeout = "100ms"
  189. # Maximum size of a message packet payload, in bytes
  190. max_packet_msg_payload_size = 1024
  191. # Rate at which packets can be sent, in bytes/second
  192. send_rate = 5120000
  193. # Rate at which packets can be received, in bytes/second
  194. recv_rate = 5120000
  195. # Set true to enable the peer-exchange reactor
  196. pex = true
  197. # Seed mode, in which node constantly crawls the network and looks for
  198. # peers. If another node asks it for addresses, it responds and disconnects.
  199. #
  200. # Does not work if the peer-exchange reactor is disabled.
  201. seed_mode = false
  202. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  203. private_peer_ids = ""
  204. # Toggle to disable guard against peers connecting from the same ip.
  205. allow_duplicate_ip = false
  206. # Peer connection configuration.
  207. handshake_timeout = "20s"
  208. dial_timeout = "3s"
  209. #######################################################
  210. ### Mempool Configuration Option ###
  211. #######################################################
  212. [mempool]
  213. recheck = true
  214. broadcast = true
  215. wal_dir = ""
  216. # Maximum number of transactions in the mempool
  217. size = 5000
  218. # Limit the total size of all txs in the mempool.
  219. # This only accounts for raw transactions (e.g. given 1MB transactions and
  220. # max_txs_bytes=5MB, mempool will only accept 5 transactions).
  221. max_txs_bytes = 1073741824
  222. # Size of the cache (used to filter transactions we saw earlier) in transactions
  223. cache_size = 10000
  224. # Do not remove invalid transactions from the cache (default: false)
  225. # Set to true if it's not possible for any invalid transaction to become valid
  226. # again in the future.
  227. keep-invalid-txs-in-cache = false
  228. # Maximum size of a single transaction.
  229. # NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
  230. max_tx_bytes = 1048576
  231. # Maximum size of a batch of transactions to send to a peer
  232. # Including space needed by encoding (one varint per transaction).
  233. # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
  234. max_batch_bytes = 0
  235. #######################################################
  236. ### State Sync Configuration Options ###
  237. #######################################################
  238. [statesync]
  239. # State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
  240. # snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
  241. # the network to take and serve state machine snapshots. State sync is not attempted if the node
  242. # has any local state (LastBlockHeight > 0). The node will have a truncated block history,
  243. # starting from the height of the snapshot.
  244. enable = false
  245. # RPC servers (comma-separated) for light client verification of the synced state machine and
  246. # retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
  247. # header hash obtained from a trusted source, and a period during which validators can be trusted.
  248. #
  249. # For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
  250. # weeks) during which they can be financially punished (slashed) for misbehavior.
  251. rpc_servers = ""
  252. trust_height = 0
  253. trust_hash = ""
  254. trust_period = "168h0m0s"
  255. # Time to spend discovering snapshots before initiating a restore.
  256. discovery_time = "15s"
  257. # Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
  258. # Will create a new, randomly named directory within, and remove it when done.
  259. temp_dir = ""
  260. # The timeout duration before re-requesting a chunk, possibly from a different
  261. # peer (default: 1 minute).
  262. chunk_request_timeout = "10s"
  263. # The number of concurrent chunk fetchers to run (default: 1).
  264. chunk_fetchers = "4"
  265. #######################################################
  266. ### Fast Sync Configuration Connections ###
  267. #######################################################
  268. [fastsync]
  269. # Fast Sync version to use:
  270. # 1) "v0" (default) - the legacy fast sync implementation
  271. # 2) "v1" - refactor of v0 version for better testability
  272. # 2) "v2" - complete redesign of v0, optimized for testability & readability
  273. version = "v0"
  274. #######################################################
  275. ### Consensus Configuration Options ###
  276. #######################################################
  277. [consensus]
  278. wal_file = "data/cs.wal/wal"
  279. # How long we wait for a proposal block before prevoting nil
  280. timeout_propose = "3s"
  281. # How much timeout_propose increases with each round
  282. timeout_propose_delta = "500ms"
  283. # How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
  284. timeout_prevote = "1s"
  285. # How much the timeout_prevote increases with each round
  286. timeout_prevote_delta = "500ms"
  287. # How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
  288. timeout_precommit = "1s"
  289. # How much the timeout_precommit increases with each round
  290. timeout_precommit_delta = "500ms"
  291. # How long we wait after committing a block, before starting on the new
  292. # height (this gives us a chance to receive some more precommits, even
  293. # though we already have +2/3).
  294. # If the timeout_commit is too fast, the chain clock will get messed up and go into the future.
  295. # This is important for IBC - to sync IBC headers, the clocks on each chain cannot differ by > 10 minutes.
  296. timeout_commit = "1s"
  297. # How many blocks to look back to check existence of the node's consensus votes before joining consensus
  298. # When non-zero, the node will panic upon restart
  299. # if the same consensus key was used to sign {double_sign_check_height} last blocks.
  300. # So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
  301. double_sign_check_height = 0
  302. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  303. skip_timeout_commit = false
  304. # EmptyBlocks mode and possible interval between empty blocks
  305. create_empty_blocks = true
  306. create_empty_blocks_interval = "0s"
  307. # Reactor sleep duration parameters
  308. peer_gossip_sleep_duration = "100ms"
  309. peer_query_maj23_sleep_duration = "2s"
  310. #######################################################
  311. ### Transaction Indexer Configuration Options ###
  312. #######################################################
  313. [tx_index]
  314. # What indexer to use for transactions
  315. #
  316. # The application will set which txs to index. In some cases a node operator will be able
  317. # to decide which txs to index based on configuration set in the application.
  318. #
  319. # Options:
  320. # 1) "null"
  321. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  322. # - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
  323. indexer = "kv"
  324. #######################################################
  325. ### Instrumentation Configuration Options ###
  326. #######################################################
  327. [instrumentation]
  328. # When true, Prometheus metrics are served under /metrics on
  329. # PrometheusListenAddr.
  330. # Check out the documentation for the list of available metrics.
  331. prometheus = false
  332. # Address to listen for Prometheus collector(s) connections
  333. prometheus_listen_addr = ":26660"
  334. # Maximum number of simultaneous connections.
  335. # If you want to accept a larger number than the default, make sure
  336. # you increase your OS limits.
  337. # 0 - unlimited.
  338. max_open_connections = 3
  339. # Instrumentation namespace
  340. namespace = "tendermint"