Skip to content

Commit 40de4ce

Browse files
authored
feat: remove bech32-cache-size (#665)
* feat: remote bech32-cache-size * docs: update CHANGELOG.md
1 parent 070ab3f commit 40de4ce

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5353
* (x/collection) [\#622](https://github.com/line/lbm-sdk/pull/622) add Query/TokenClassTypeName
5454
* (x/bank) [\#629](https://github.com/line/lbm-sdk/pull/629) remove unsafe balance changing methods from bank keeper such as `SetBalance` and `SetSupply`.
5555
* (x/wasm) [\#649](https://github.com/line/lbm-sdk/pull/649) fix: wasm module's FIXME in the snapshotter.go file
56+
* (config) [\#665](https://github.com/line/lbm-sdk/pull/665) remove bech32-cache-size
5657

5758
### Improvements
5859

server/config/config.go

-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ type BaseConfig struct {
7979
// IAVL cache size; bytes size unit
8080
IAVLCacheSize uint64 `mapstructure:"iavl-cache-size"`
8181

82-
// Bech32CacheSize is the maximum bytes size of bech32 cache (Default : 1GB)
83-
Bech32CacheSize int `mapstructure:"bech32-cache-size"`
84-
8582
// When true, Prometheus metrics are served under /metrics on prometheus_listen_addr in config.toml.
8683
// It works when tendermint's prometheus option (config.toml) is set to true.
8784
Prometheus bool `mapstructure:"prometheus"`

server/config/toml.go

-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ inter-block-cache-size = {{ .BaseConfig.InterBlockCacheSize }}
6969
# IAVLCacheSize is the maximum bytes size of iavl node cache
7070
iavl-cache-size = {{ .BaseConfig.IAVLCacheSize }}
7171
72-
# Bech32CacheSize is the maximum bytes size of bech32 cache (Default : 1GB)
73-
bech32-cache-size = {{ .BaseConfig.Bech32CacheSize }}
74-
7572
# IndexEvents defines the set of events in the form {eventType}.{attributeKey},
7673
# which informs Tendermint what to index. If empty, all events will be indexed.
7774
#

server/start.go

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const (
4848
FlagInterBlockCache = "inter-block-cache"
4949
FlagInterBlockCacheSize = "inter-block-cache-size"
5050
FlagIAVLCacheSize = "iavl-cache-size"
51-
FlagBech32CacheSize = "bech32-cache-size"
5251
FlagUnsafeSkipUpgrades = "unsafe-skip-upgrades"
5352
FlagTrace = "trace"
5453
FlagInvCheckPeriod = "inv-check-period"

0 commit comments

Comments
 (0)