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.

166 lines
4.7 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 = "alpha"
  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. # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
  74. private_peer_ids = ""
  75. ##### mempool configuration options #####
  76. [mempool]
  77. recheck = true
  78. recheck_empty = true
  79. broadcast = true
  80. wal_dir = "data/mempool.wal"
  81. ##### consensus configuration options #####
  82. [consensus]
  83. wal_file = "data/cs.wal/wal"
  84. # All timeouts are in milliseconds
  85. timeout_propose = 3000
  86. timeout_propose_delta = 500
  87. timeout_prevote = 1000
  88. timeout_prevote_delta = 500
  89. timeout_precommit = 1000
  90. timeout_precommit_delta = 500
  91. timeout_commit = 1000
  92. # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
  93. skip_timeout_commit = false
  94. # BlockSize
  95. max_block_size_txs = 10000
  96. max_block_size_bytes = 1
  97. # EmptyBlocks mode and possible interval between empty blocks in seconds
  98. create_empty_blocks = true
  99. create_empty_blocks_interval = 0
  100. # Reactor sleep duration parameters are in milliseconds
  101. peer_gossip_sleep_duration = 100
  102. peer_query_maj23_sleep_duration = 2000
  103. ##### transactions indexer configuration options #####
  104. [tx_index]
  105. # What indexer to use for transactions
  106. #
  107. # Options:
  108. # 1) "null" (default)
  109. # 2) "kv" - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
  110. indexer = "kv"
  111. # Comma-separated list of tags to index (by default the only tag is tx hash)
  112. #
  113. # It's recommended to index only a subset of tags due to possible memory
  114. # bloat. This is, of course, depends on the indexer's DB and the volume of
  115. # transactions.
  116. index_tags = ""
  117. # When set to true, tells indexer to index all tags. Note this may be not
  118. # desirable (see the comment above). IndexTags has a precedence over
  119. # IndexAllTags (i.e. when given both, IndexTags will be indexed).
  120. index_all_tags = false