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