|
| 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:28658" |
| 9 | + |
| 10 | +# A custom human readable name for this node |
| 11 | +moniker = "xxx" |
| 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 | +state_sync_reactor = false |
| 19 | +# If this node is many days behind the tip of the chain, StateSync |
| 20 | +# allows them to catchup quickly by downloading app state (without historical blocks) |
| 21 | +# in parallel and start syncing block afterwards |
| 22 | +state_sync = false |
| 23 | + |
| 24 | +# Database backend: leveldb | memdb | cleveldb |
| 25 | +db_backend = "leveldb" |
| 26 | + |
| 27 | +# Database directory |
| 28 | +db_dir = "data" |
| 29 | + |
| 30 | +# Output level for logging, including package level options |
| 31 | +log_level = "statesync:info,blockchain:debug,main:info,paramHub:info,dex:info,dexkeeper:info,state:info,token:info,pub:info,consensus:info,*:error" |
| 32 | + |
| 33 | +# Output format: 'plain' (colored text) or 'json' |
| 34 | +log_format = "plain" |
| 35 | + |
| 36 | +##### additional base config options ##### |
| 37 | + |
| 38 | +# Path to the JSON file containing the initial validator set and other meta data |
| 39 | +genesis_file = "config/genesis.json" |
| 40 | + |
| 41 | +# Path to the JSON file containing the private key to use as a validator in the consensus protocol |
| 42 | +priv_validator_key_file = "config/priv_validator_key.json" |
| 43 | + |
| 44 | +# Path to the JSON file containing the last sign state of a validator |
| 45 | +priv_validator_state_file = "data/priv_validator_state.json" |
| 46 | + |
| 47 | +# TCP or UNIX socket address for Tendermint to listen on for |
| 48 | +# connections from an external PrivValidator process |
| 49 | +priv_validator_laddr = "" |
| 50 | + |
| 51 | +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol |
| 52 | +node_key_file = "config/node_key.json" |
| 53 | + |
| 54 | +# Mechanism to connect to the ABCI application: socket | grpc |
| 55 | +abci = "socket" |
| 56 | + |
| 57 | +# TCP or UNIX socket address for the profiling server to listen on |
| 58 | +prof_laddr = ":9062" |
| 59 | + |
| 60 | +# If true, query the ABCI app on connecting to a new peer |
| 61 | +# so the app can decide if we should keep the connection or not |
| 62 | +filter_peers = false |
| 63 | + |
| 64 | +# If false, will not check appHash when apply block |
| 65 | +with_app_stat = true |
| 66 | + |
| 67 | +##### advanced configuration options ##### |
| 68 | + |
| 69 | +##### rpc server configuration options ##### |
| 70 | +[rpc] |
| 71 | + |
| 72 | +# TCP or UNIX socket address for the RPC server to listen on |
| 73 | +laddr = "tcp://0.0.0.0:27147" |
| 74 | + |
| 75 | +# A list of origins a cross-domain request can be executed from |
| 76 | +# Default value '[]' disables cors support |
| 77 | +# Use '["*"]' to allow any origin |
| 78 | +cors_allowed_origins = [] |
| 79 | + |
| 80 | +# A list of methods the client is allowed to use with cross-domain requests |
| 81 | +cors_allowed_methods = ["HEAD", "GET", "POST", ] |
| 82 | + |
| 83 | +# A list of non simple headers the client is allowed to use with cross-domain requests |
| 84 | +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] |
| 85 | + |
| 86 | +# TCP or UNIX socket address for the gRPC server to listen on |
| 87 | +# NOTE: This server only supports /broadcast_tx_commit |
| 88 | +grpc_laddr = "" |
| 89 | + |
| 90 | +# Maximum number of simultaneous connections. |
| 91 | +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections |
| 92 | +# If you want to accept a larger number than the default, make sure |
| 93 | +# you increase your OS limits. |
| 94 | +# 0 - unlimited. |
| 95 | +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} |
| 96 | +# 1024 - 40 - 10 - 50 = 924 = ~900 |
| 97 | +grpc_max_open_connections = 900 |
| 98 | + |
| 99 | +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool |
| 100 | +unsafe = false |
| 101 | + |
| 102 | +# Maximum number of simultaneous connections (including WebSocket). |
| 103 | +# Does not include gRPC connections. See grpc_max_open_connections |
| 104 | +# If you want to accept a larger number than the default, make sure |
| 105 | +# you increase your OS limits. |
| 106 | +# 0 - unlimited. |
| 107 | +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} |
| 108 | +# 1024 - 40 - 10 - 50 = 924 = ~900 |
| 109 | +max_open_connections = 900 |
| 110 | + |
| 111 | +# Maximum number of go routine to process websocket request. |
| 112 | +# 1 - process websocket request synchronously. |
| 113 | +# 10 - default size. |
| 114 | +# Should be {WebsocketPoolSpawnSize} =< {WebsocketPoolMaxSize} |
| 115 | +websocket_pool_size = 10 |
| 116 | + |
| 117 | +# The queued buffer for workers to process requests. |
| 118 | +# 10 -default |
| 119 | +websocket_pool_queue_size = 10 |
| 120 | + |
| 121 | +# The initial size of goroutines in pool. |
| 122 | +# 1 - process websocket request synchronously. |
| 123 | +# 5 - default size |
| 124 | +# Should be {WebsocketPoolSpawnSize} =< {WebsocketPoolMaxSize} |
| 125 | +websocket_pool_spawn_size = 5 |
| 126 | + |
| 127 | +##### peer to peer configuration options ##### |
| 128 | +[p2p] |
| 129 | + |
| 130 | +# Address to listen for incoming connections |
| 131 | +laddr = "tcp://0.0.0.0:27146" |
| 132 | + |
| 133 | +# Address to advertise to peers for them to dial |
| 134 | +# If empty, will use the same port as the laddr, |
| 135 | +# and will introspect on the listener or use UPnP |
| 136 | +# to figure out the address. |
| 137 | +external_address = "" |
| 138 | + |
| 139 | +# Comma separated list of seed nodes to connect to |
| 140 | + |
| 141 | +# Comma separated list of nodes to keep persistent connections to |
| 142 | +persistent_peers = "" |
| 143 | +# UPNP port forwarding |
| 144 | +upnp = false |
| 145 | + |
| 146 | +# Path to address book |
| 147 | +addr_book_file = "config/addrbook.json" |
| 148 | + |
| 149 | +# Set true for strict address routability rules |
| 150 | +# Set false for private or local networks |
| 151 | +addr_book_strict = false |
| 152 | + |
| 153 | +# Maximum number of inbound peers |
| 154 | +max_num_inbound_peers = 40 |
| 155 | + |
| 156 | +# Maximum number of outbound peers to connect to, excluding persistent peers |
| 157 | +max_num_outbound_peers = 10 |
| 158 | + |
| 159 | +# Time to wait before flushing messages out on the connection |
| 160 | +flush_throttle_timeout = "10ms" |
| 161 | + |
| 162 | +# Maximum size of a message packet payload, in bytes |
| 163 | +max_packet_msg_payload_size = 10485760 |
| 164 | + |
| 165 | +# Maximum num of keys a state sync request ask for |
| 166 | +keys_per_request = 1000 |
| 167 | + |
| 168 | +# Rate at which packets can be sent, in bytes/second |
| 169 | +send_rate = 52428800 |
| 170 | + |
| 171 | +# Rate at which packets can be received, in bytes/second |
| 172 | +recv_rate = 102428800 |
| 173 | + |
| 174 | +# Interval to send pings |
| 175 | +ping_interval = "1m0s" |
| 176 | + |
| 177 | +# Maximum wait time for pongs |
| 178 | +pong_timeout = "45s" |
| 179 | + |
| 180 | +# Set true to enable the peer-exchange reactor |
| 181 | +pex = true |
| 182 | + |
| 183 | +# Seed mode, in which node constantly crawls the network and looks for |
| 184 | +# peers. If another node asks it for addresses, it responds and disconnects. |
| 185 | +# |
| 186 | +# Does not work if the peer-exchange reactor is disabled. |
| 187 | +seed_mode = false |
| 188 | + |
| 189 | +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) |
| 190 | +private_peer_ids = "" |
| 191 | + |
| 192 | +# Toggle to disable guard against peers connecting from the same ip. |
| 193 | +allow_duplicate_ip = true |
| 194 | + |
| 195 | +# Peer connection configuration. |
| 196 | +handshake_timeout = "20s" |
| 197 | +dial_timeout = "3s" |
| 198 | + |
| 199 | +##### mempool configuration options ##### |
| 200 | +[mempool] |
| 201 | + |
| 202 | +recheck = true |
| 203 | +broadcast = true |
| 204 | +wal_dir = "" |
| 205 | + |
| 206 | +# size of the mempool |
| 207 | +size = 5000 |
| 208 | + |
| 209 | +# size of the cache (used to filter transactions we saw earlier) |
| 210 | +cache_size = 10000 |
| 211 | + |
| 212 | +##### consensus configuration options ##### |
| 213 | +[consensus] |
| 214 | + |
| 215 | +wal_file = "data/cs.wal/wal" |
| 216 | + |
| 217 | +timeout_propose = "3s" |
| 218 | +timeout_propose_delta = "500ms" |
| 219 | +timeout_prevote = "1s" |
| 220 | +timeout_prevote_delta = "500ms" |
| 221 | +timeout_precommit = "1s" |
| 222 | +timeout_precommit_delta = "500ms" |
| 223 | +timeout_commit = "1s" |
| 224 | + |
| 225 | +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) |
| 226 | +skip_timeout_commit = true |
| 227 | + |
| 228 | +# EmptyBlocks mode and possible interval between empty blocks |
| 229 | +create_empty_blocks = true |
| 230 | +create_empty_blocks_interval = "0s" |
| 231 | + |
| 232 | +# Reactor sleep duration parameters |
| 233 | +peer_gossip_sleep_duration = "10ms" |
| 234 | +peer_query_maj23_sleep_duration = "2s" |
| 235 | + |
| 236 | +# Block time parameters. Corresponds to the minimum time increment between consecutive blocks. |
| 237 | +blocktime_iota = "0s" |
| 238 | + |
| 239 | +##### transactions indexer configuration options ##### |
| 240 | +[tx_index] |
| 241 | + |
| 242 | +# What indexer to use for transactions |
| 243 | +# |
| 244 | +# Options: |
| 245 | +# 1) "null" |
| 246 | +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). |
| 247 | +indexer = "kv" |
| 248 | + |
| 249 | +# Comma-separated list of tags to index (by default the only tag is "tx.hash") |
| 250 | +# |
| 251 | +# You can also index transactions by height by adding "tx.height" tag here. |
| 252 | +# |
| 253 | +# It's recommended to index only a subset of tags due to possible memory |
| 254 | +# bloat. This is, of course, depends on the indexer's DB and the volume of |
| 255 | +# transactions. |
| 256 | +index_tags = "" |
| 257 | + |
| 258 | +# When set to true, tells indexer to index all tags (predefined tags: |
| 259 | +# "tx.hash", "tx.height" and all tags from DeliverTx responses). |
| 260 | +# |
| 261 | +# Note this may be not desirable (see the comment above). IndexTags has a |
| 262 | +# precedence over IndexAllTags (i.e. when given both, IndexTags will be |
| 263 | +# indexed). |
| 264 | +index_all_tags = false |
| 265 | + |
| 266 | +##### instrumentation configuration options ##### |
| 267 | +[instrumentation] |
| 268 | + |
| 269 | +# When true, Prometheus metrics are served under /metrics on |
| 270 | +# PrometheusListenAddr. |
| 271 | +# Check out the documentation for the list of available metrics. |
| 272 | +prometheus = false |
| 273 | + |
| 274 | +# Address to listen for Prometheus collector(s) connections |
| 275 | +prometheus_listen_addr = ":28660" |
| 276 | + |
| 277 | +# Maximum number of simultaneous connections. |
| 278 | +# If you want to accept a larger number than the default, make sure |
| 279 | +# you increase your OS limits. |
| 280 | +# 0 - unlimited. |
| 281 | +max_open_connections = 3 |
| 282 | + |
| 283 | +# Instrumentation namespace |
| 284 | +namespace = "tendermint" |
0 commit comments