You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CacheSizeint`mapstructure:"cache-size" toml:"cache-size" comment:"CacheSize set the size of the iavl tree cache."`
6
+
SkipFastStorageUpgradebool`mapstructure:"skip-fast-storage-upgrade" toml:"skip-fast-storage-upgrade" comment:"If true, the tree will work like no fast storage and always not upgrade fast storage."`
7
7
}
8
8
9
9
// DefaultConfig returns the default configuration for the IAVL tree.
# min-retain-blocks defines the minimum block height offset from the current block being committed, such that all blocks past this offset are pruned from CometBFT. A value of 0 indicates that no blocks should be pruned.
3
+
min-retain-blocks = 0
4
+
# index-events defines the set of events in the form {eventType}.{attributeKey}, which informs CometBFT what to index. If empty, all events will be indexed.
5
+
index-events = []
6
+
# halt-height contains a non-zero block height at which a node will gracefully halt and shutdown that can be used to assist upgrades and testing.
7
+
halt-height = 0
8
+
# halt-time contains a non-zero minimum block time (in Unix seconds) at which a node will gracefully halt and shutdown that can be used to assist upgrades and testing.
9
+
halt-time = 0
10
+
# address defines the CometBFT RPC server address to bind to.
11
+
address = 'tcp://127.0.0.1:26658'
12
+
# transport defines the CometBFT RPC server transport protocol: socket, grpc
13
+
transport = 'socket'
14
+
# trace enables the CometBFT RPC server to output trace information about its internal operations.
15
+
trace = false
16
+
# standalone starts the application without the CometBFT node. The node should be started separately.
17
+
standalone = false
18
+
19
+
[grpc]
20
+
# Enable defines if the gRPC server should be enabled.
21
+
enable = true
22
+
# Address defines the gRPC server address to bind to.
23
+
address = 'localhost:9090'
24
+
# MaxRecvMsgSize defines the max message size in bytes the server can receive.
25
+
# The default value is 10MB.
26
+
max-recv-msg-size = 10485760
27
+
# MaxSendMsgSize defines the max message size in bytes the server can send.
28
+
# The default value is math.MaxInt32.
29
+
max-send-msg-size = 2147483647
30
+
31
+
[store]
32
+
# The type of database for application and snapshots databases.
33
+
app-db-backend = 'goleveldb'
34
+
35
+
[store.options]
36
+
# State storage database type. Currently we support: 0 for SQLite, 1 for Pebble
37
+
ss-type = 0
38
+
# State commitment database type. Currently we support:0 for iavl, 1 for iavl v2
39
+
sc-type = 0
40
+
41
+
# Pruning options for state storage
42
+
[store.options.ss-pruning-option]
43
+
# Number of recent heights to keep on disk.
44
+
keep-recent = 2
45
+
# Height interval at which pruned heights are removed from disk.
46
+
interval = 1
47
+
48
+
# Pruning options for state commitment
49
+
[store.options.sc-pruning-option]
50
+
# Number of recent heights to keep on disk.
51
+
keep-recent = 2
52
+
# Height interval at which pruned heights are removed from disk.
53
+
interval = 1
54
+
55
+
[store.options.iavl-config]
56
+
# CacheSize set the size of the iavl tree cache.
57
+
cache-size = 100000
58
+
# If true, the tree will work like no fast storage and always not upgrade fast storage.
0 commit comments