# This is a TOML config file. # For more information, see https://github.com/toml-lang/toml # NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or # relative to the home directory (e.g. "data"). The home directory is # "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable # or --home cmd flag. ####################################################################### ### Main Base Config Options ### ####################################################################### # A custom human readable name for this node moniker = "hpx-node" # Mode of Node: full | validator | seed # * validator node # - all reactors # - with priv_validator_key.json, priv_validator_state.json # * full node # - all reactors # - No priv_validator_key.json, priv_validator_state.json # * seed node # - only P2P, PEX Reactor # - No priv_validator_key.json, priv_validator_state.json mode = "full" # Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb # * goleveldb (github.com/syndtr/goleveldb - most popular implementation) # - pure go # - stable # * cleveldb (uses levigo wrapper) # - fast # - requires gcc # - use cleveldb build tag (go build -tags cleveldb) # * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) # - EXPERIMENTAL # - may be faster is some use-cases (random reads - indexer) # - use boltdb build tag (go build -tags boltdb) # * rocksdb (uses github.com/tecbot/gorocksdb) # - EXPERIMENTAL # - requires gcc # - use rocksdb build tag (go build -tags rocksdb) # * badgerdb (uses github.com/dgraph-io/badger) # - EXPERIMENTAL # - use badgerdb build tag (go build -tags badgerdb) db-backend = "goleveldb" # Database directory db-dir = "data" # Output level for logging, including package level options log-level = "info" # Output format: 'plain' (colored text) or 'json' log-format = "text" ##### 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 for node authentication in the p2p protocol node-key-file = "config/node_key.json" ####################################################################### ### 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:26657" # A list of origins a cross-domain request can be executed from # Default value '[]' disables cors support # Use '["*"]' to allow any origin cors-allowed-origins = [] # A list of methods the client is allowed to use with cross-domain requests cors-allowed-methods = ["HEAD", "GET", "POST", ] # A list of non simple headers the client is allowed to use with cross-domain requests cors-allowed-headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] # Activate unsafe RPC commands like /dial-seeds and /unsafe-flush-mempool unsafe = false # Maximum number of simultaneous connections (including WebSocket). # If you want to accept a larger number than the default, make sure # you increase your OS limits. # 0 - unlimited. # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} # 1024 - 40 - 10 - 50 = 924 = ~900 max-open-connections = 900 # Maximum number of unique clientIDs that can /subscribe # If you're using /broadcast_tx_commit, set to the estimated maximum number # of broadcast_tx_commit calls per block. max-subscription-clients = 100 # Maximum number of unique queries a given client can /subscribe to # If you're using a Local RPC client and /broadcast_tx_commit, set this # to the estimated maximum number of broadcast_tx_commit calls per block. max-subscriptions-per-client = 5 # If true, disable the websocket interface to the RPC service. This has # the effect of disabling the /subscribe, /unsubscribe, and /unsubscribe_all # methods for event subscription. # # EXPERIMENTAL: This setting will be removed in Tendermint v0.37. experimental-disable-websocket = false # The time window size for the event log. All events up to this long before # the latest (up to EventLogMaxItems) will be available for subscribers to # fetch via the /events method. If 0 (the default) the event log and the # /events RPC method are disabled. event-log-window-size = "30s" # The maxiumum number of events that may be retained by the event log. If # this value is 0, no upper limit is set. Otherwise, items in excess of # this number will be discarded from the event log. # # Warning: This setting is a safety valve. Setting it too low may cause # subscribers to miss events. Try to choose a value higher than the # maximum worst-case expected event load within the chosen window size in # ordinary operation. # # For example, if the window size is 10 minutes and the node typically # averages 1000 events per ten minutes, but with occasional known spikes of # up to 2000, choose a value > 2000. event-log-max-items = 0 # How long to wait for a tx to be committed during /broadcast_tx_commit. # WARNING: Using a value larger than 10s will result in increasing the # global HTTP write timeout, which applies to all connections and endpoints. # See https://github.com/tendermint/tendermint/issues/3435 timeout-broadcast-tx-commit = "10s" # Maximum size of request body, in bytes max-body-bytes = 1000000 # Maximum size of request header, in bytes max-header-bytes = 1048576 # The path to a file containing certificate that is used to create the HTTPS server. # Might be either absolute path or path related to Tendermint's config directory. # If the certificate is signed by a certificate authority, # the certFile should be the concatenation of the server's certificate, any intermediates, # and the CA's certificate. # NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. # Otherwise, HTTP server is run. tls-cert-file = "" # The path to a file containing matching private key that is used to create the HTTPS server. # Might be either absolute path or path related to Tendermint's config directory. # NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. # Otherwise, HTTP server is run. tls-key-file = "" # pprof listen address (https://golang.org/pkg/net/http/pprof) pprof-laddr = "localhost:6060" # timeout for any read request timeout-read = "10s" # HTTP write timeout; acts as a hard backstop for all handlers. # Set to "0s" to disable (not recommended). timeout-write = "30s" ####################################################################### ### P2P Configuration Options ### ####################################################################### [p2p] # Select the p2p internal queue queue-type = "simple-priority" # Address to listen for incoming connections laddr = "tcp://0.0.0.0:26656" # Address to advertise to peers for them to dial # If empty, will use the same port as the laddr, # and will introspect on the listener or use UPnP # to figure out the address. ip and port are required # example: 159.89.10.97:26656 external-address = "" # Comma separated list of peers to be added to the peer store # on startup. Either BootstrapPeers or PersistentPeers are # needed for peer discovery bootstrap-peers = "" # Comma separated list of nodes to keep persistent connections to persistent-peers = "" # Comma separated list of nodes for block sync only blocksync-peers = "" # UPNP port forwarding upnp = false # Maximum number of connections (inbound and outbound). max-connections = 200 # Rate limits the number of incoming connection attempts per IP address. max-incoming-connection-attempts = 100 # Set true to enable the peer-exchange reactor pex = true # Comma separated list of peer IDs to keep private (will not be gossiped to other peers) # Warning: IPs will be exposed at /net_info, for more information https://github.com/tendermint/tendermint/issues/3055 private-peer-ids = "" # Toggle to disable guard against peers connecting from the same ip. allow-duplicate-ip = false # Peer connection configuration. handshake-timeout = "20s" dial-timeout = "3s" # Time to wait before flushing messages out on the connection # TODO: Remove once MConnConnection is removed. flush-throttle-timeout = "10ms" # Maximum size of a message packet payload, in bytes # TODO: Remove once MConnConnection is removed. # WARNING: coordinate before changing this default; impacts network interoperability max-packet-msg-payload-size = 102400 # Rate at which packets can be sent, in bytes/second # TODO: Remove once MConnConnection is removed. send-rate = 204800000 # Rate at which packets can be received, in bytes/second # TODO: Remove once MConnConnection is removed. recv-rate = 204800000 # List of node IDs, to which a connection will be (re)established, dropping an existing peer if any existing limit has been reached unconditional-peer-ids = "" ####################################################################### ### Mempool Configuration Options ### ####################################################################### [mempool] # recheck has been moved from a config option to a global # consensus param in v0.36 # See https://github.com/tendermint/tendermint/issues/8244 for more information. # Set true to broadcast transactions in the mempool to other nodes broadcast = true # Maximum number of transactions in the mempool size = 5000 # Limit the total size of all txs in the mempool. # This only accounts for raw transactions (e.g. given 1MB transactions and # max-txs-bytes=5MB, mempool will only accept 5 transactions). max-txs-bytes = 107374182400 # Size of the cache (used to filter transactions we saw earlier) in transactions cache-size = 50000 # Size of the cache duplicate tx keys for tracking metrics duplicate-txs-cache-size = "100000" # Do not remove invalid transactions from the cache (default: false) # Set to true if it's not possible for any invalid transaction to become valid # again in the future. keep-invalid-txs-in-cache = false # Maximum size of a single transaction. # NOTE: the max size of a tx transmitted over the network is {max-tx-bytes}. max-tx-bytes = 20485760 # Maximum size of a batch of transactions to send to a peer # Including space needed by encoding (one varint per transaction). # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 max-batch-bytes = 0 # ttl-duration, if non-zero, defines the maximum amount of time a transaction # can exist for in the mempool. # # Note, if ttl-num-blocks is also defined, a transaction will be removed if it # has existed in the mempool at least ttl-num-blocks number of blocks or if it's # insertion time into the mempool is beyond ttl-duration. ttl-duration = "0s" # ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction # can exist for in the mempool. # # Note, if ttl-duration is also defined, a transaction will be removed if it # has existed in the mempool at least ttl-num-blocks number of blocks or if # it's insertion time into the mempool is beyond ttl-duration. ttl-num-blocks = 0 tx-notify-threshold = 0 check-tx-error-blacklist-enabled = true check-tx-error-threshold = 50 pending-size = 5000 max-pending-txs-bytes = 1073741824 pending-ttl-duration = "0s" pending-ttl-num-blocks = 0 # Defines the percentage of transactions with the lowest priority hint # (expressed as a percentage in the range [0.0, 1.0]) that will be # dropped from the mempool once the configured utilisation threshold # is reached. drop-priority-threshold = 0.1 # Defines the mempool utilisation level (expressed as a percentage in # the range [0.0, 1.0]) above which transactions will be selectively # dropped based on their priority hint. # # For example, if this parameter is set to 0.8, then once the mempool reaches # 80% capacity, transactions with priority hints below drop-priority-threshold # percentile will be dropped to make room for new transactions. drop-utilisation-threshold = 1 # Defines the size of the reservoir for keeping track # of the distribution of transaction priorities in the mempool. # # This is used to determine the priority threshold below which transactions will # be dropped when the mempool utilisation exceeds drop-priority-threshold. # # The reservoir is a statistically representative sample of transaction # priorities in the mempool, and is used to estimate the priority distribution # without needing to store all transaction priorities. # # A larger reservoir size will yield a more accurate estimate of the priority # distribution, but will consume more memory. # # The default value of 10,240 is a reasonable compromise between accuracy and # memory usage for most use cases. It takes approximately 80KB of memory storing # int64 transaction priorities. # # See DropUtilisationThreshold and DropPriorityThreshold. drop-priority-reservoir-size = 10240 ####################################################################### ### State Sync Configuration Options ### ####################################################################### [statesync] # State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine # snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in # the network to take and serve state machine snapshots. State sync is not attempted if the node # has any local state (LastBlockHeight > 0). The node will have a truncated block history, # starting from the height of the snapshot. enable = false # State sync uses light client verification to verify state. This can be done either through the # P2P layer or RPC layer. Set this to true to use the P2P layer. If false (default), RPC layer # will be used. use-p2p = false # If using RPC, at least two addresses need to be provided. They should be compatible with net.Dial, # for example: "host.example.com:2125" rpc-servers = "" # The hash and height of a trusted block. Must be within the trust-period. trust-height = 0 trust-hash = "" # The trust period should be set so that Tendermint can detect and gossip misbehavior before # it is considered expired. For chains based on the Cosmos SDK, one day less than the unbonding # period should suffice. trust-period = "168h0m0s" # Whether to use local snapshot only for state sync or not. # If this is true, then state sync will look for existing snapshots # which are located in the snapshot-dir configured in app.toml (default to [home-dir]/data/snapshots) use-local-snapshot = false # Advanced state-sync tuning knobs are intentionally omitted from this template: # - backfill-blocks, backfill-duration: post-sync historical light-block backfill # - discovery-time, temp-dir: snapshot discovery and chunk staging # - chunk-request-timeout, fetchers: chunk transfer behavior # - verify-light-block-timeout, blacklist-ttl: light client verification # They are still parsed if set explicitly here; see the Sei docs for the full list # and recommended values. ####################################################### ### Consensus Configuration Options ### ####################################################### [consensus] wal-file = "data/cs.wal/wal" # How long we wait for a proposal block before prevoting nil unsafe-propose-timeout-override = "20ms" # How much timeout_propose increases with each round unsafe-propose-timeout-delta-override = "20ms" # How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) unsafe-vote-timeout-override = "5ms" # How much the timeout_precommit increases with each round unsafe-vote-timeout-delta-override = "20ms" # How long we wait after committing a block, before starting on the new # height (this gives us a chance to receive some more precommits, even # though we already have +2/3). unsafe-commit-timeout-override = "1ms" # How many blocks to look back to check existence of the node's consensus votes before joining consensus # When non-zero, the node will panic upon restart # if the same consensus key was used to sign {double_sign_check_height} last blocks. # So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. double-sign-check-height = 0 # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) unsafe-bypass-commit-timeout-override = true # EmptyBlocks mode and possible interval between empty blocks create-empty-blocks = false create-empty-blocks-interval = "0s" # Reactor sleep duration parameters peer-gossip-sleep-duration = "5ms" peer-query-maj23-sleep-duration = "100ms" gossip-tx-key-only=true ####################################################################### ### Transaction Indexer Configuration (Auto-managed) ### ####################################################################### [tx-index] # The backend database list to back the indexer. # If list contains "null" or "", meaning no indexer service will be used. # # The application will set which txs to index. In some cases a node operator will be able # to decide which txs to index based on configuration set in the application. # # Options: # 1) "null" (default) - no indexer services. # 2) "kv" - a simple indexer backed by key-value storage (see DBBackend) # 3) "psql" - the indexer services backed by PostgreSQL. # When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. indexer = ["null"] # The PostgreSQL connection configuration, the connection format: # postgresql://:@:/? psql-conn = "" ####################################################################### ### Instrumentation Configuration (Auto-managed) ### ####################################################################### [instrumentation] # When true, Prometheus metrics are served under /metrics on # PrometheusListenAddr. # Check out the documentation for the list of available metrics. prometheus = true # Address to listen for Prometheus collector(s) connections prometheus-listen-addr = ":26660" # Maximum number of simultaneous connections. # If you want to accept a larger number than the default, make sure # you increase your OS limits. # 0 - unlimited. max-open-connections = 3 # Instrumentation namespace namespace = "tendermint" ####################################################################### ### Priv Validator Configuration (Auto-managed) ### ####################################################################### [priv-validator] # Path to the JSON file containing the private key to use as a validator in the consensus protocol key-file = "config/priv_validator_key.json" # Path to the JSON file containing the last sign state of a validator state-file = "data/priv_validator_state.json" # TCP or UNIX socket address for Tendermint to listen on for # connections from an external PrivValidator process # when the listenAddr is prefixed with grpc instead of tcp it will use the gRPC Client laddr = "" # Path to the client certificate generated while creating needed files for secure connection. # If a remote validator address is provided but no certificate, the connection will be insecure client-certificate-file = "" # Client key generated while creating certificates for secure connection client-key-file = "" # Path to the Root Certificate Authority used to sign both client and server certificates root-ca-file = "" ####################################################################### ### SelfRemediation Configuration (Auto-managed) ### ####################################################################### [self-remediation] # If the node has no p2p peers available then trigger a restart # Set to 0 to disable p2p-no-peers-available-window-seconds = 0 # If node has no peers for statesync after a period of time then restart # Set to 0 to disable statesync-no-peers-available-window-seconds = 0 # Threshold for how far back the node can be behind the current block height before triggering a restart # Set to 0 to disable blocks-behind-threshold = 0 # How often to check if node is behind blocks-behind-check-interval = 60 # Cooldown between each restart restart-cooldown-seconds = 600 # Path to a JSON file containing the Autobahn (GigaRouter) configuration. # Leave empty to disable Autobahn. autobahn-config-file = ""