Skip to content

Commit ee7452a

Browse files
committed
nits
1 parent 22ed453 commit ee7452a

19 files changed

+2322
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ vendor/
88
/build/
99
.vscode
1010
.idea
11-
.network/
1211
__debug_*
1312

1413
# docusaurus versioned docs created during build
Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
# This is a TOML config file.
2+
# For more information, see https://github.com/toml-lang/toml
3+
4+
###############################################################################
5+
### Base Configuration ###
6+
###############################################################################
7+
8+
# The minimum gas prices a validator is willing to accept for processing a
9+
# transaction. A transaction's fees must meet the minimum of any denomination
10+
# specified in this config (e.g. 0.25token1,0.0001token2).
11+
minimum-gas-prices = "0stake"
12+
13+
# The maximum gas a query coming over rest/grpc may consume.
14+
# If this is set to zero, the query can consume an unbounded amount of gas.
15+
query-gas-limit = "0"
16+
17+
# default: the last 362880 states are kept, pruning at 10 block intervals
18+
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
19+
# everything: 2 latest states will be kept; pruning at 10 block intervals.
20+
# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval'
21+
pruning = "default"
22+
23+
# These are applied if and only if the pruning strategy is custom.
24+
pruning-keep-recent = "0"
25+
pruning-interval = "0"
26+
27+
# HaltHeight contains a non-zero block height at which a node will gracefully
28+
# halt and shutdown that can be used to assist upgrades and testing.
29+
#
30+
# Note: Commitment of state will be attempted on the corresponding block.
31+
halt-height = 0
32+
33+
# HaltTime contains a non-zero minimum block time (in Unix seconds) at which
34+
# a node will gracefully halt and shutdown that can be used to assist upgrades
35+
# and testing.
36+
#
37+
# Note: Commitment of state will be attempted on the corresponding block.
38+
halt-time = 0
39+
40+
# MinRetainBlocks defines the minimum block height offset from the current
41+
# block being committed, such that all blocks past this offset are pruned
42+
# from CometBFT. It is used as part of the process of determining the
43+
# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates
44+
# that no blocks should be pruned.
45+
#
46+
# This configuration value is only responsible for pruning CometBFT blocks.
47+
# It has no bearing on application state pruning which is determined by the
48+
# "pruning-*" configurations.
49+
#
50+
# Note: CometBFT block pruning is dependant on this parameter in conjunction
51+
# with the unbonding (safety threshold) period, state pruning and state sync
52+
# snapshot parameters to determine the correct minimum value of
53+
# ResponseCommit.RetainHeight.
54+
min-retain-blocks = 0
55+
56+
# InterBlockCache enables inter-block caching.
57+
inter-block-cache = true
58+
59+
# IndexEvents defines the set of events in the form {eventType}.{attributeKey},
60+
# which informs CometBFT what to index. If empty, all events will be indexed.
61+
#
62+
# Example:
63+
# ["message.sender", "message.recipient"]
64+
index-events = []
65+
66+
# IavlCacheSize set the size of the iavl tree cache (in number of nodes).
67+
iavl-cache-size = 781250
68+
69+
# IAVLDisableFastNode enables or disables the fast node feature of IAVL.
70+
# Default is false.
71+
iavl-disable-fastnode = false
72+
73+
# AppDBBackend defines the database backend type to use for the application and snapshots DBs.
74+
# An empty string indicates that a fallback will be used.
75+
# The fallback is the db_backend value set in CometBFT's config.toml.
76+
app-db-backend = ""
77+
78+
###############################################################################
79+
### Telemetry Configuration ###
80+
###############################################################################
81+
82+
[telemetry]
83+
84+
# Prefixed with keys to separate services.
85+
service-name = ""
86+
87+
# Enabled enables the application telemetry functionality. When enabled,
88+
# an in-memory sink is also enabled by default. Operators may also enabled
89+
# other sinks such as Prometheus.
90+
enabled = false
91+
92+
# Enable prefixing gauge values with hostname.
93+
enable-hostname = false
94+
95+
# Enable adding hostname to labels.
96+
enable-hostname-label = false
97+
98+
# Enable adding service to labels.
99+
enable-service-label = false
100+
101+
# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink.
102+
prometheus-retention-time = 0
103+
104+
# GlobalLabels defines a global set of name/value label tuples applied to all
105+
# metrics emitted using the wrapper functions defined in telemetry package.
106+
#
107+
# Example:
108+
# [["chain_id", "cosmoshub-1"]]
109+
global-labels = [
110+
]
111+
112+
# MetricsSink defines the type of metrics sink to use.
113+
metrics-sink = ""
114+
115+
# StatsdAddr defines the address of a statsd server to send metrics to.
116+
# Only utilized if MetricsSink is set to "statsd" or "dogstatsd".
117+
statsd-addr = ""
118+
119+
# DatadogHostname defines the hostname to use when emitting metrics to
120+
# Datadog. Only utilized if MetricsSink is set to "dogstatsd".
121+
datadog-hostname = ""
122+
123+
###############################################################################
124+
### API Configuration ###
125+
###############################################################################
126+
127+
[api]
128+
129+
# Enable defines if the API server should be enabled.
130+
enable = false
131+
132+
# Swagger defines if swagger documentation should automatically be registered.
133+
swagger = false
134+
135+
# Address defines the API server to listen on.
136+
address = "tcp://localhost:1317"
137+
138+
# MaxOpenConnections defines the number of maximum open connections.
139+
max-open-connections = 1000
140+
141+
# RPCReadTimeout defines the CometBFT RPC read timeout (in seconds).
142+
rpc-read-timeout = 10
143+
144+
# RPCWriteTimeout defines the CometBFT RPC write timeout (in seconds).
145+
rpc-write-timeout = 0
146+
147+
# RPCMaxBodyBytes defines the CometBFT maximum request body (in bytes).
148+
rpc-max-body-bytes = 1000000
149+
150+
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk).
151+
enabled-unsafe-cors = false
152+
153+
###############################################################################
154+
### gRPC Configuration ###
155+
###############################################################################
156+
157+
[grpc]
158+
159+
# Enable defines if the gRPC server should be enabled.
160+
enable = true
161+
162+
# Address defines the gRPC server address to bind to.
163+
address = "localhost:9090"
164+
165+
# MaxRecvMsgSize defines the max message size in bytes the server can receive.
166+
# The default value is 10MB.
167+
max-recv-msg-size = "10485760"
168+
169+
# MaxSendMsgSize defines the max message size in bytes the server can send.
170+
# The default value is math.MaxInt32.
171+
max-send-msg-size = "2147483647"
172+
173+
###############################################################################
174+
### gRPC Web Configuration ###
175+
###############################################################################
176+
177+
[grpc-web]
178+
179+
# GRPCWebEnable defines if the gRPC-web should be enabled.
180+
# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.
181+
# NOTE: gRPC-Web uses the same address as the API server.
182+
enable = true
183+
184+
###############################################################################
185+
### State Sync Configuration ###
186+
###############################################################################
187+
188+
# State sync snapshots allow other nodes to rapidly join the network without replaying historical
189+
# blocks, instead downloading and applying a snapshot of the application state at a given height.
190+
[state-sync]
191+
192+
# snapshot-interval specifies the block interval at which local state sync snapshots are
193+
# taken (0 to disable).
194+
snapshot-interval = 0
195+
196+
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
197+
snapshot-keep-recent = 2
198+
199+
###############################################################################
200+
### State Streaming ###
201+
###############################################################################
202+
203+
# Streaming allows nodes to stream state to external systems.
204+
[streaming]
205+
206+
# streaming.abci specifies the configuration for the ABCI Listener streaming service.
207+
[streaming.abci]
208+
209+
# List of kv store keys to stream out via gRPC.
210+
# The store key names MUST match the module's StoreKey name.
211+
#
212+
# Example:
213+
# ["acc", "bank", "gov", "staking", "mint"[,...]]
214+
# ["*"] to expose all keys.
215+
keys = []
216+
217+
# The plugin name used for streaming via gRPC.
218+
# Streaming is only enabled if this is set.
219+
# Supported plugins: abci
220+
plugin = ""
221+
222+
# stop-node-on-err specifies whether to stop the node on message delivery error.
223+
stop-node-on-err = true
224+
225+
###############################################################################
226+
### Mempool ###
227+
###############################################################################
228+
229+
[mempool]
230+
# Setting max-txs to 0 will allow for a unbounded amount of transactions in the mempool.
231+
# Setting max_txs to negative 1 (-1) will disable transactions from being inserted into the mempool (no-op mempool).
232+
# Setting max_txs to a positive number (> 0) will limit the number of transactions in the mempool, by the specified amount.
233+
#
234+
# Note, this configuration only applies to SDK built-in app-side mempool
235+
# implementations.
236+
max-txs = -1
237+
238+
[wasm]
239+
# This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
240+
query_gas_limit = 300000
241+
# This is the number of wasm vm instances we keep cached in memory for speed-up
242+
# Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
243+
lru_size = 0
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This is a TOML config file.
2+
# For more information, see https://github.com/toml-lang/toml
3+
4+
###############################################################################
5+
### Client Configuration ###
6+
###############################################################################
7+
8+
# The network chain ID
9+
chain-id = ""
10+
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
11+
keyring-backend = "os"
12+
# CLI output format (text|json)
13+
output = "text"
14+
# <host>:<port> to CometBFT RPC interface for this chain
15+
node = "tcp://localhost:26657"
16+
# Transaction broadcasting mode (sync|async)
17+
broadcast-mode = "sync"

0 commit comments

Comments
 (0)