# This is a TOML config file. # For more information, see https://github.com/toml-lang/toml ##### main base config options ##### # TCP or UNIX socket address of the ABCI application, # or the name of an ABCI application compiled in with the Tendermint binary proxy_app = "tcp://127.0.0.1:46658" # A custom human readable name for this node moniker = "{{inventory_hostname}}" # If this node is many blocks behind the tip of the chain, FastSync # allows them to catchup quickly by downloading blocks in parallel # and verifying their commits fast_sync = true {% if service == 'tendermint' %} # Database backend: leveldb | memdb db_backend = "memdb" # Database directory db_path = "data" # Output level for logging, including package level options log_level = "mempool:error,*:debug" {% else %} # Database backend: leveldb | memdb db_backend = "leveldb" # Database directory db_path = "data" # Output level for logging, including package level options log_level = "main:info,state:info,*:error" #log_level = "mempool:error,*:debug" {% endif %} ##### additional base config options ##### # Path to the JSON file containing the initial validator set and other meta data genesis_file = "config/genesis.json" # Path to the JSON file containing the private key to use as a validator in the consensus protocol priv_validator_file = "config/priv_validator.json" # Path to the JSON file containing the private key to use for node authentication in the p2p protocol node_key_file = "config/node_key.json" # Mechanism to connect to the ABCI application: socket | grpc abci = "socket" # TCP or UNIX socket address for the profiling server to listen on prof_laddr = "" # If true, query the ABCI app on connecting to a new peer # so the app can decide if we should keep the connection or not filter_peers = false ##### advanced configuration options ##### ##### rpc server configuration options ##### [rpc] # TCP or UNIX socket address for the RPC server to listen on laddr = "tcp://0.0.0.0:46657" # TCP or UNIX socket address for the gRPC server to listen on # NOTE: This server only supports /broadcast_tx_commit grpc_laddr = "" # Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool unsafe = false ##### peer to peer configuration options ##### [p2p] # Address to listen for incoming connections laddr = "tcp://0.0.0.0:46656" # Comma separated list of seed nodes to connect to seeds = "{{ seeds | default() }}" # Comma separated list of nodes to keep persistent connections to {% set comma = joiner(",") %}persistent_peers = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["nodeid"]}}@{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}" # Path to address book addr_book_file = "config/addrbook.json" # Set true for strict address routability rules addr_book_strict = true # Time to wait before flushing messages out on the connection, in ms flush_throttle_timeout = 100 # Maximum number of peers to connect to #max_num_peers = 50 max_num_peers = 300 # Maximum size of a message packet payload, in bytes {% if service == 'tendermint' %} max_msg_packet_payload_size = 65536 {% else %} max_msg_packet_payload_size = 1024 {% endif %} # Rate at which packets can be sent, in bytes/second {% if service == 'tendermint' %} send_rate = 51200000 # 50 MB/s {% else %} send_rate = 512000 {% endif %} # Rate at which packets can be received, in bytes/second {% if service == 'tendermint' %} recv_rate = 51200000 # 50 MB/s {% else %} recv_rate = 512000 {% endif %} # Set true to enable the peer-exchange reactor pex = true # Seed mode, in which node constantly crawls the network and looks for # peers. If another node asks it for addresses, it responds and disconnects. # # Does not work if the peer-exchange reactor is disabled. seed_mode = false ##### mempool configuration options ##### [mempool] {% if service == 'tendermint' %} recheck = false {% else %} recheck = true {% endif %} recheck_empty = true broadcast = true {% if service == 'tendermint' %} wal_dir = "" {% else %} wal_dir = "data/mempool.wal" {% endif %} ##### consensus configuration options ##### [consensus] wal_file = "data/cs.wal/wal" {% if service == 'tendermint' %} wal_light = true {% else %} wal_light = false {% endif %} # All timeouts are in milliseconds {% if service == 'tendermint' %} timeout_propose = 10000 {% else %} timeout_propose = 3000 {% endif %} timeout_propose_delta = 500 timeout_prevote = 1000 timeout_prevote_delta = 500 timeout_precommit = 1000 timeout_precommit_delta = 500 {% if service == 'tendermint' %} timeout_commit = 1 {% else %} timeout_commit = 1000 {% endif %} # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) {% if service == 'tendermint' %} skip_timeout_commit = true {% else %} skip_timeout_commit = false {% endif %} # BlockSize max_block_size_txs = 10000 max_block_size_bytes = 1 # EmptyBlocks mode and possible interval between empty blocks in seconds {% if service == 'tendermint' %} create_empty_blocks = false {% else %} create_empty_blocks = true create_empty_blocks_interval = 60 {% endif %} # Reactor sleep duration parameters are in milliseconds peer_gossip_sleep_duration = 100 peer_query_maj23_sleep_duration = 2000 ##### transactions indexer configuration options ##### [tx_index] # What indexer to use for transactions # # Options: # 1) "null" (default) # 2) "kv" - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). indexer = "kv" # Comma-separated list of tags to index (by default the only tag is tx hash) # # It's recommended to index only a subset of tags due to possible memory # bloat. This is, of course, depends on the indexer's DB and the volume of # transactions. index_tags = "" # When set to true, tells indexer to index all tags. Note this may be not # desirable (see the comment above). IndexTags has a precedence over # IndexAllTags (i.e. when given both, IndexTags will be indexed). index_all_tags = false