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

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