From a40dbe1feb2fad321d109f3f33ad4db3c2f7f392 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Dumais Date: Thu, 22 Dec 2022 11:40:41 -0500 Subject: [PATCH] fix/QB-1344 Read IAVL cache size from config --- cmd/stchaind/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/stchaind/root.go b/cmd/stchaind/root.go index c3ac04f0..6e58853d 100644 --- a/cmd/stchaind/root.go +++ b/cmd/stchaind/root.go @@ -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"))), ) }