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.

169 lines
4.8 KiB

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