Skip to content

Commit ab33342

Browse files
author
yihuang
authored
fix: call SetIAVLCacheSize with the configured value in simapp (#13107)
* Call `SetIAVLCacheSize` with the configured value in simapp. * Update CHANGELOG.md
1 parent 797bd12 commit ab33342

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
7070
* [#12886](https://github.com/cosmos/cosmos-sdk/pull/12886) Amortize cost of processing cache KV store
7171
* [#12953](https://github.com/cosmos/cosmos-sdk/pull/12953) Change the default priority mechanism to be based on gas price.
7272
* [#13048](https://github.com/cosmos/cosmos-sdk/pull/13048) Add handling of AccountNumberStoreKeyPrefix to the x/auth simulation decoder.
73+
* (simapp) [#13107](https://github.com/cosmos/cosmos-sdk/pull/13107) Call `SetIAVLCacheSize` with the configured value in simapp.
7374

7475
### State Machine Breaking
7576

server/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const (
5656
FlagPruningInterval = "pruning-interval"
5757
FlagIndexEvents = "index-events"
5858
FlagMinRetainBlocks = "min-retain-blocks"
59+
FlagIAVLCacheSize = "iavl-cache-size"
5960

6061
// state sync-related flags
6162
FlagStateSyncSnapshotInterval = "state-sync.snapshot-interval"

simapp/simd/cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ func newApp(
301301
baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))),
302302
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
303303
baseapp.SetSnapshot(snapshotStore, snapshotOptions),
304+
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
304305
)
305306
}
306307

0 commit comments

Comments
 (0)