github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/scripts/confix/testdata/v33-config.toml (about)

     1  # This is a TOML config file.
     2  # For more information, see https://github.com/toml-lang/toml
     3  
     4  # NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
     5  # relative to the home directory (e.g. "data"). The home directory is
     6  # "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
     7  # or --home cmd flag.
     8  
     9  ##### main base config options #####
    10  
    11  # TCP or UNIX socket address of the ABCI application,
    12  # or the name of an ABCI application compiled in with the Tendermint binary
    13  proxy_app = "tcp://127.0.0.1:26658"
    14  
    15  # A custom human readable name for this node
    16  moniker = "localhost"
    17  
    18  # If this node is many blocks behind the tip of the chain, FastSync
    19  # allows them to catchup quickly by downloading blocks in parallel
    20  # and verifying their commits
    21  fast_sync = true
    22  
    23  # Database backend: goleveldb | cleveldb | boltdb | rocksdb
    24  # * goleveldb (github.com/syndtr/goleveldb - most popular implementation)
    25  #   - pure go
    26  #   - stable
    27  # * cleveldb (uses levigo wrapper)
    28  #   - fast
    29  #   - requires gcc
    30  #   - use cleveldb build tag (go build -tags cleveldb)
    31  # * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt)
    32  #   - EXPERIMENTAL
    33  #   - may be faster is some use-cases (random reads - indexer)
    34  #   - use boltdb build tag (go build -tags boltdb)
    35  # * rocksdb (uses github.com/tecbot/gorocksdb)
    36  #   - EXPERIMENTAL
    37  #   - requires gcc
    38  #   - use rocksdb build tag (go build -tags rocksdb)
    39  db_backend = "goleveldb"
    40  
    41  # Database directory
    42  db_dir = "data"
    43  
    44  # Output level for logging, including package level options
    45  log_level = "main:info,state:info,*:error"
    46  
    47  # Output format: 'plain' (colored text) or 'json'
    48  log_format = "plain"
    49  
    50  ##### additional base config options #####
    51  
    52  # Path to the JSON file containing the initial validator set and other meta data
    53  genesis_file = "config/genesis.json"
    54  
    55  # Path to the JSON file containing the private key to use as a validator in the consensus protocol
    56  priv_validator_key_file = "config/priv_validator_key.json"
    57  
    58  # Path to the JSON file containing the last sign state of a validator
    59  priv_validator_state_file = "data/priv_validator_state.json"
    60  
    61  # TCP or UNIX socket address for Tendermint to listen on for
    62  # connections from an external PrivValidator process
    63  priv_validator_laddr = ""
    64  
    65  # Path to the JSON file containing the private key to use for node authentication in the p2p protocol
    66  node_key_file = "config/node_key.json"
    67  
    68  # Mechanism to connect to the ABCI application: socket | grpc
    69  abci = "socket"
    70  
    71  # TCP or UNIX socket address for the profiling server to listen on
    72  prof_laddr = ""
    73  
    74  # If true, query the ABCI app on connecting to a new peer
    75  # so the app can decide if we should keep the connection or not
    76  filter_peers = false
    77  
    78  ##### advanced configuration options #####
    79  
    80  ##### rpc server configuration options #####
    81  [rpc]
    82  
    83  # TCP or UNIX socket address for the RPC server to listen on
    84  laddr = "tcp://127.0.0.1:26657"
    85  
    86  # A list of origins a cross-domain request can be executed from
    87  # Default value '[]' disables cors support
    88  # Use '["*"]' to allow any origin
    89  cors_allowed_origins = []
    90  
    91  # A list of methods the client is allowed to use with cross-domain requests
    92  cors_allowed_methods = ["HEAD", "GET", "POST", ]
    93  
    94  # A list of non simple headers the client is allowed to use with cross-domain requests
    95  cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ]
    96  
    97  # TCP or UNIX socket address for the gRPC server to listen on
    98  # NOTE: This server only supports /broadcast_tx_commit
    99  grpc_laddr = ""
   100  
   101  # Maximum number of simultaneous connections.
   102  # Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
   103  # If you want to accept a larger number than the default, make sure
   104  # you increase your OS limits.
   105  # 0 - unlimited.
   106  # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
   107  # 1024 - 40 - 10 - 50 = 924 = ~900
   108  grpc_max_open_connections = 900
   109  
   110  # Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
   111  unsafe = false
   112  
   113  # Maximum number of simultaneous connections (including WebSocket).
   114  # Does not include gRPC connections. See grpc_max_open_connections
   115  # If you want to accept a larger number than the default, make sure
   116  # you increase your OS limits.
   117  # 0 - unlimited.
   118  # Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files}
   119  # 1024 - 40 - 10 - 50 = 924 = ~900
   120  max_open_connections = 900
   121  
   122  # Maximum number of unique clientIDs that can /subscribe
   123  # If you're using /broadcast_tx_commit, set to the estimated maximum number
   124  # of broadcast_tx_commit calls per block.
   125  max_subscription_clients = 100
   126  
   127  # Maximum number of unique queries a given client can /subscribe to
   128  # If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to
   129  # the estimated # maximum number of broadcast_tx_commit calls per block.
   130  max_subscriptions_per_client = 5
   131  
   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  
   138  # Maximum size of request body, in bytes
   139  max_body_bytes = 1000000
   140  
   141  # Maximum size of request header, in bytes
   142  max_header_bytes = 1048576
   143  
   144  # The path to a file containing certificate that is used to create the HTTPS server.
   145  # Migth be either absolute path or path related to tendermint's config directory.
   146  # If the certificate is signed by a certificate authority,
   147  # the certFile should be the concatenation of the server's certificate, any intermediates,
   148  # and the CA's certificate.
   149  # NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server.
   150  # Otherwise, HTTP server is run.
   151  tls_cert_file = ""
   152  
   153  # The path to a file containing matching private key that is used to create the HTTPS server.
   154  # Migth be either absolute path or path related to tendermint's config directory.
   155  # NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server.
   156  # Otherwise, HTTP server is run.
   157  tls_key_file = ""
   158  
   159  ##### peer to peer configuration options #####
   160  [p2p]
   161  
   162  # Address to listen for incoming connections
   163  laddr = "tcp://0.0.0.0:26656"
   164  
   165  # Address to advertise to peers for them to dial
   166  # If empty, will use the same port as the laddr,
   167  # and will introspect on the listener or use UPnP
   168  # to figure out the address.
   169  external_address = ""
   170  
   171  # Comma separated list of seed nodes to connect to
   172  seeds = ""
   173  
   174  # Comma separated list of nodes to keep persistent connections to
   175  persistent_peers = ""
   176  
   177  # UPNP port forwarding
   178  upnp = false
   179  
   180  # Path to address book
   181  addr_book_file = "config/addrbook.json"
   182  
   183  # Set true for strict address routability rules
   184  # Set false for private or local networks
   185  addr_book_strict = true
   186  
   187  # Maximum number of inbound peers
   188  max_num_inbound_peers = 40
   189  
   190  # Maximum number of outbound peers to connect to, excluding persistent peers
   191  max_num_outbound_peers = 10
   192  
   193  # List of node IDs, to which a connection will be (re)established ignoring any existing limits
   194  unconditional_peer_ids = ""
   195  
   196  # Maximum pause when redialing a persistent peer (if zero, exponential backoff is used)
   197  persistent_peers_max_dial_period = "0s"
   198  
   199  # Time to wait before flushing messages out on the connection
   200  flush_throttle_timeout = "100ms"
   201  
   202  # Maximum size of a message packet payload, in bytes
   203  max_packet_msg_payload_size = 1024
   204  
   205  # Rate at which packets can be sent, in bytes/second
   206  send_rate = 5120000
   207  
   208  # Rate at which packets can be received, in bytes/second
   209  recv_rate = 5120000
   210  
   211  # Set true to enable the peer-exchange reactor
   212  pex = true
   213  
   214  # Seed mode, in which node constantly crawls the network and looks for
   215  # peers. If another node asks it for addresses, it responds and disconnects.
   216  #
   217  # Does not work if the peer-exchange reactor is disabled.
   218  seed_mode = false
   219  
   220  # Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
   221  private_peer_ids = ""
   222  
   223  # Toggle to disable guard against peers connecting from the same ip.
   224  allow_duplicate_ip = false
   225  
   226  # Peer connection configuration.
   227  handshake_timeout = "20s"
   228  dial_timeout = "3s"
   229  
   230  ##### mempool configuration options #####
   231  [mempool]
   232  
   233  recheck = true
   234  broadcast = true
   235  wal_dir = ""
   236  
   237  # Maximum number of transactions in the mempool
   238  size = 5000
   239  
   240  # Limit the total size of all txs in the mempool.
   241  # This only accounts for raw transactions (e.g. given 1MB transactions and
   242  # max_txs_bytes=5MB, mempool will only accept 5 transactions).
   243  max_txs_bytes = 1073741824
   244  
   245  # Size of the cache (used to filter transactions we saw earlier) in transactions
   246  cache_size = 10000
   247  
   248  # Maximum size of a single transaction.
   249  # NOTE: the max size of a tx transmitted over the network is {max_tx_bytes} + {amino overhead}.
   250  max_tx_bytes = 1048576
   251  
   252  ##### fast sync configuration options #####
   253  [fastsync]
   254  
   255  # Fast Sync version to use:
   256  #   1) "v0" (default) - the legacy fast sync implementation
   257  #   2) "v1" - refactor of v0 version for better testability
   258  #   3) "v2" - refactor of v1 version for better usability
   259  version = "v0"
   260  
   261  ##### consensus configuration options #####
   262  [consensus]
   263  
   264  wal_file = "data/cs.wal/wal"
   265  
   266  timeout_propose = "3s"
   267  timeout_propose_delta = "500ms"
   268  timeout_prevote = "1s"
   269  timeout_prevote_delta = "500ms"
   270  timeout_precommit = "1s"
   271  timeout_precommit_delta = "500ms"
   272  timeout_commit = "1s"
   273  
   274  # Make progress as soon as we have all the precommits (as if TimeoutCommit = 0)
   275  skip_timeout_commit = false
   276  
   277  # EmptyBlocks mode and possible interval between empty blocks
   278  create_empty_blocks = true
   279  create_empty_blocks_interval = "0s"
   280  
   281  # Reactor sleep duration parameters
   282  peer_gossip_sleep_duration = "100ms"
   283  peer_query_maj23_sleep_duration = "2s"
   284  
   285  ##### transactions indexer configuration options #####
   286  [tx_index]
   287  
   288  # What indexer to use for transactions
   289  #
   290  # Options:
   291  #   1) "null"
   292  #   2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
   293  indexer = "kv"
   294  
   295  # Comma-separated list of compositeKeys to index (by default the only key is "tx.hash")
   296  # Remember that Event has the following structure: type.key
   297  # type: [
   298  #  key: value,
   299  #  ...
   300  # ]
   301  #
   302  # You can also index transactions by height by adding "tx.height" key here.
   303  #
   304  # It's recommended to index only a subset of keys due to possible memory
   305  # bloat. This is, of course, depends on the indexer's DB and the volume of
   306  # transactions.
   307  index_keys = ""
   308  
   309  # When set to true, tells indexer to index all compositeKeys (predefined keys:
   310  # "tx.hash", "tx.height" and all keys from DeliverTx responses).
   311  #
   312  # Note this may be not desirable (see the comment above). IndexKeys has a
   313  # precedence over IndexAllKeys (i.e. when given both, IndexKeys will be
   314  # indexed).
   315  index_all_keys = false
   316  
   317  ##### instrumentation configuration options #####
   318  [instrumentation]
   319  
   320  # When true, Prometheus metrics are served under /metrics on
   321  # PrometheusListenAddr.
   322  # Check out the documentation for the list of available metrics.
   323  prometheus = false
   324  
   325  # Address to listen for Prometheus collector(s) connections
   326  prometheus_listen_addr = ":26660"
   327  
   328  # Maximum number of simultaneous connections.
   329  # If you want to accept a larger number than the default, make sure
   330  # you increase your OS limits.
   331  # 0 - unlimited.
   332  max_open_connections = 3
   333  
   334  # Instrumentation namespace
   335  namespace = "tendermint"