Skip to content

Commit

Permalink
Merge pull request #193 from stratosnet/fix/QB-1344_iavl_cache_size
Browse files Browse the repository at this point in the history
fix/QB-1344 Read IAVL cache size from config
  • Loading branch information
alexstratos authored Dec 22, 2022
2 parents 1f93167 + a40dbe1 commit a99f6a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/stchaind/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a
baseapp.SetSnapshotStore(snapshotStore),
baseapp.SetSnapshotInterval(cast.ToUint64(appOpts.Get(sdkserver.FlagStateSyncSnapshotInterval))),
baseapp.SetSnapshotKeepRecent(cast.ToUint32(appOpts.Get(sdkserver.FlagStateSyncSnapshotKeepRecent))),
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get("iavl-cache-size"))),
)
}

Expand Down

0 comments on commit a99f6a9

Please sign in to comment.