config.toml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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 = ""
  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 = "info"
  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://127.0.0.1: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 = "10s"
  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. # jumpcrypto, chainlayer, forbole, syncnode, chainnode tech, figment, staking facilities, staking fund
  171. persistent_peers = """\
  172. 8e7a0485dd956491a63cea0fac598e7588ef46f7@35.207.119.54:26656,\
  173. b4f2e07e01222307faabce24b1e8dc2736e96c53@194.169.245.254:26656,\
  174. 2b457d275d6f75867bd1fcc859f52db0dbd39324@57.128.144.245:26656,\
  175. ecdd26f15d171073f2c3a1419caee3fbc820cfb2@37.120.245.149:26656,\
  176. e0a00b061f072ff0b60c03b49d32ee780331e5b8@162.19.171.137:36156,\
  177. 2fec1a950c29e0b847b50e9cbd081948bf717e8a@15.235.53.169:26656,\
  178. 59e1edf9de1827931ced34ebc5f7737b42a02f31@80.190.129.50:49660\
  179. """
  180. # UPNP port forwarding
  181. upnp = false
  182. # Path to address book
  183. addr_book_file = "config/addrbook.json"
  184. # Set true for strict address routability rules
  185. # Set false for private or local networks
  186. addr_book_strict = true
  187. # Maximum number of inbound peers
  188. max_num_inbound_peers = 40
  189. # Maximum number of outbound peers to connect to, excluding persistent peers
  190. max_num_outbound_peers = 10
  191. # List of node IDs, to which a connection will be (re)established ignoring any existing limits
  192. unconditional_peer_ids = ""
  193. # Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
  194. persistent_peers_max_dial_period = "0s"
  195. # Time to wait before flushing messages out on the connection
  196. flush_throttle_timeout = "100ms"
  197. # Maximum size of a message packet payload, in bytes
  198. max_packet_msg_payload_size = 1024
  199. # Rate at which packets can be sent, in bytes/second
  200. send_rate = 5120000
  201. # Rate at which packets can be received, in bytes/second
  202. recv_rate = 5120000
  203. # Set true to enable the peer-exchange reactor
  204. pex = true
  205. # Seed mode, in which node constantly crawls the network and looks for
  206. # peers. If another node asks it for addresses, it responds and disconnects.
  207. #
  208. # Does not work if the peer-exchange reactor is disabled.
  209. seed_mode = false
  210. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  211. private_peer_ids = ""
  212. # Toggle to disable guard against peers connecting from the same ip.
  213. allow_duplicate_ip = false
  214. # Peer connection configuration.
  215. handshake_timeout = "20s"
  216. dial_timeout = "3s"
  217. #######################################################
  218. ### Mempool Configuration Option ###
  219. #######################################################
  220. [mempool]
  221. # Mempool version to use:
  222. # 1) "v0" - (default) FIFO mempool.
  223. # 2) "v1" - prioritized mempool.
  224. version = "v0"
  225. recheck = true
  226. broadcast = true
  227. wal_dir = ""
  228. # Maximum number of transactions in the mempool
  229. size = 5000
  230. # Limit the total size of all txs in the mempool.
  231. # This only accounts for raw transactions (e.g. given 1MB transactions and
  232. # max_txs_bytes=5MB, mempool will only accept 5 transactions).
  233. max_txs_bytes = 1073741824
  234. # Size of the cache (used to filter transactions we saw earlier) in transactions
  235. cache_size = 10000
  236. # Do not remove invalid transactions from the cache (default: false)
  237. # Set to true if it's not possible for any invalid transaction to become valid
  238. # again in the future.
  239. keep-invalid-txs-in-cache = false
  240. # Maximum size of a single transaction.
  241. # NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
  242. max_tx_bytes = 1048576
  243. # Maximum size of a batch of transactions to send to a peer
  244. # Including space needed by encoding (one varint per transaction).
  245. # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796
  246. max_batch_bytes = 0
  247. # ttl-duration, if non-zero, defines the maximum amount of time a transaction
  248. # can exist for in the mempool.
  249. #
  250. # Note, if ttl-num-blocks is also defined, a transaction will be removed if it
  251. # has existed in the mempool at least ttl-num-blocks number of blocks or if it's
  252. # insertion time into the mempool is beyond ttl-duration.
  253. ttl-duration = "0s"
  254. # ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction
  255. # can exist for in the mempool.
  256. #
  257. # Note, if ttl-duration is also defined, a transaction will be removed if it
  258. # has existed in the mempool at least ttl-num-blocks number of blocks or if
  259. # it's insertion time into the mempool is beyond ttl-duration.
  260. ttl-num-blocks = 0
  261. #######################################################
  262. ### State Sync Configuration Options ###
  263. #######################################################
  264. [statesync]
  265. # State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine
  266. # snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in
  267. # the network to take and serve state machine snapshots. State sync is not attempted if the node
  268. # has any local state (LastBlockHeight > 0). The node will have a truncated block history,
  269. # starting from the height of the snapshot.
  270. enable = false
  271. # RPC servers (comma-separated) for light client verification of the synced state machine and
  272. # retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding
  273. # header hash obtained from a trusted source, and a period during which validators can be trusted.
  274. #
  275. # For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
  276. # weeks) during which they can be financially punished (slashed) for misbehavior.
  277. rpc_servers = ""
  278. trust_height = 0
  279. trust_hash = ""
  280. trust_period = "168h0m0s"
  281. # Time to spend discovering snapshots before initiating a restore.
  282. discovery_time = "15s"
  283. # Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp).
  284. # Will create a new, randomly named directory within, and remove it when done.
  285. temp_dir = ""
  286. # The timeout duration before re-requesting a chunk, possibly from a different
  287. # peer (default: 1 minute).
  288. chunk_request_timeout = "10s"
  289. # The number of concurrent chunk fetchers to run (default: 1).
  290. chunk_fetchers = "4"
  291. #######################################################
  292. ### Fast Sync Configuration Connections ###
  293. #######################################################
  294. [fastsync]
  295. # Fast Sync version to use:
  296. # 1) "v0" (default) - the legacy fast sync implementation
  297. # 2) "v1" - refactor of v0 version for better testability
  298. # 2) "v2" - complete redesign of v0, optimized for testability & readability
  299. version = "v0"
  300. #######################################################
  301. ### Consensus Configuration Options ###
  302. #######################################################
  303. [consensus]
  304. wal_file = "data/cs.wal/wal"
  305. # How long we wait for a proposal block before prevoting nil
  306. timeout_propose = "3s"
  307. # How much timeout_propose increases with each round
  308. timeout_propose_delta = "500ms"
  309. # How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil)
  310. timeout_prevote = "1s"
  311. # How much the timeout_prevote increases with each round
  312. timeout_prevote_delta = "500ms"
  313. # How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil)
  314. timeout_precommit = "1s"
  315. # How much the timeout_precommit increases with each round
  316. timeout_precommit_delta = "500ms"
  317. # How long we wait after committing a block, before starting on the new
  318. # height (this gives us a chance to receive some more precommits, even
  319. # though we already have +2/3).
  320. timeout_commit = "5s"
  321. # How many blocks to look back to check existence of the node's consensus votes before joining consensus
  322. # When non-zero, the node will panic upon restart
  323. # if the same consensus key was used to sign {double_sign_check_height} last blocks.
  324. # So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic.
  325. double_sign_check_height = 0
  326. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  327. skip_timeout_commit = false
  328. # EmptyBlocks mode and possible interval between empty blocks
  329. create_empty_blocks = true
  330. create_empty_blocks_interval = "0s"
  331. # Reactor sleep duration parameters
  332. peer_gossip_sleep_duration = "100ms"
  333. peer_query_maj23_sleep_duration = "2s"
  334. #######################################################
  335. ### Storage Configuration Options ###
  336. #######################################################
  337. # Set to true to discard ABCI responses from the state store, which can save a
  338. # considerable amount of disk space. Set to false to ensure ABCI responses are
  339. # persisted. ABCI responses are required for /block_results RPC queries, and to
  340. # reindex events in the command-line tool.
  341. discard_abci_responses = false
  342. #######################################################
  343. ### Transaction Indexer Configuration Options ###
  344. #######################################################
  345. [tx_index]
  346. # What indexer to use for transactions
  347. #
  348. # The application will set which txs to index. In some cases a node operator will be able
  349. # to decide which txs to index based on configuration set in the application.
  350. #
  351. # Options:
  352. # 1) "null"
  353. # 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  354. # - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
  355. # 3) "psql" - the indexer services backed by PostgreSQL.
  356. # When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed.
  357. indexer = "kv"
  358. # The PostgreSQL connection configuration, the connection format:
  359. # postgresql://<user>:<password>@<host>:<port>/<db>?<opts>
  360. psql-conn = ""
  361. #######################################################
  362. ### Instrumentation Configuration Options ###
  363. #######################################################
  364. [instrumentation]
  365. # When true, Prometheus metrics are served under /metrics on
  366. # PrometheusListenAddr.
  367. # Check out the documentation for the list of available metrics.
  368. prometheus = false
  369. # Address to listen for Prometheus collector(s) connections
  370. prometheus_listen_addr = ":26660"
  371. # Maximum number of simultaneous connections.
  372. # If you want to accept a larger number than the default, make sure
  373. # you increase your OS limits.
  374. # 0 - unlimited.
  375. max_open_connections = 3
  376. # Instrumentation namespace
  377. namespace = "tendermint"