Skip to content

Commit

Permalink
fix: the bug not setting iavl-cache-size value of the app.toml an…
Browse files Browse the repository at this point in the history
…d change `DefaultIAVLCacheSize`

Signed-off-by: zemyblue <[email protected]>
  • Loading branch information
zemyblue committed Sep 20, 2022
1 parent 80ba750 commit 8e31113
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions simapp/simd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a
baseapp.SetInterBlockCache(cache),
baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))),
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
baseapp.SetSnapshotStore(snapshotStore),
baseapp.SetSnapshotInterval(cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval))),
baseapp.SetSnapshotKeepRecent(cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent))),
Expand Down
4 changes: 2 additions & 2 deletions store/iavl/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

const (
// DefaultIAVLCacheSize is default Iavl cache units size. 1 unit is 128 byte
// default 128MB
DefaultIAVLCacheSize = 1024 * 1024
// default 64MB
DefaultIAVLCacheSize = 1024 * 512
)

var (
Expand Down

0 comments on commit 8e31113

Please sign in to comment.