From 2a01e11eb92f67ddcd8d197c0f18e10a17d5f2ff Mon Sep 17 00:00:00 2001 From: HuangYi Date: Wed, 31 Aug 2022 11:42:54 +0800 Subject: [PATCH 1/2] Call `SetIAVLCacheSize` with the configured value in simapp. --- CHANGELOG.md | 1 + server/start.go | 1 + simapp/simd/cmd/root.go | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c623f39ac24..b8ba6cd1c1e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [#12886](https://github.com/cosmos/cosmos-sdk/pull/12886) Amortize cost of processing cache KV store * [#12953](https://github.com/cosmos/cosmos-sdk/pull/12953) Change the default priority mechanism to be based on gas price. * [#13048](https://github.com/cosmos/cosmos-sdk/pull/13048) Add handling of AccountNumberStoreKeyPrefix to the x/auth simulation decoder. +* (simapp) [#]() Call `SetIAVLCacheSize` with the configured value in simapp. ### State Machine Breaking diff --git a/server/start.go b/server/start.go index f425420efcda..307fde9eaedd 100644 --- a/server/start.go +++ b/server/start.go @@ -56,6 +56,7 @@ const ( FlagPruningInterval = "pruning-interval" FlagIndexEvents = "index-events" FlagMinRetainBlocks = "min-retain-blocks" + FlagIAVLCacheSize = "iavl-cache-size" // state sync-related flags FlagStateSyncSnapshotInterval = "state-sync.snapshot-interval" diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index 568a1fe3505e..9b0965458d70 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -301,6 +301,7 @@ func newApp( baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))), baseapp.SetSnapshot(snapshotStore, snapshotOptions), + baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), ) } From 0a23d18654e042c0c7bcf263fec943606c5efc4c Mon Sep 17 00:00:00 2001 From: yihuang Date: Wed, 31 Aug 2022 11:44:18 +0800 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8ba6cd1c1e2..5e1e90db8dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,7 +70,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [#12886](https://github.com/cosmos/cosmos-sdk/pull/12886) Amortize cost of processing cache KV store * [#12953](https://github.com/cosmos/cosmos-sdk/pull/12953) Change the default priority mechanism to be based on gas price. * [#13048](https://github.com/cosmos/cosmos-sdk/pull/13048) Add handling of AccountNumberStoreKeyPrefix to the x/auth simulation decoder. -* (simapp) [#]() Call `SetIAVLCacheSize` with the configured value in simapp. +* (simapp) [#13107](https://github.com/cosmos/cosmos-sdk/pull/13107) Call `SetIAVLCacheSize` with the configured value in simapp. ### State Machine Breaking