Skip to content

Commit

Permalink
Merge PR: disable multi cache (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiD authored Nov 24, 2022
1 parent 273f123 commit d5f2166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/cosmos-sdk/server/start_okchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ func RegisterServerFlags(cmd *cobra.Command) *cobra.Command {

cmd.Flags().Float64Var(&baseapp.GasUsedFactor, baseapp.FlagGasUsedFactor, 0.4, "factor to calculate history gas used")

cmd.Flags().Bool(sdk.FlagMultiCache, true, "Enable multi cache")
cmd.Flags().Bool(sdk.FlagMultiCache, false, "Enable multi cache")
cmd.Flags().MarkHidden(sdk.FlagMultiCache)
cmd.Flags().Int(sdk.MaxAccInMultiCache, 0, "max acc in multi cache")
cmd.Flags().Int(sdk.MaxStorageInMultiCache, 0, "max storage in multi cache")
cmd.Flags().Bool(flatkv.FlagEnable, false, "Enable flat kv storage for read performance")
Expand Down
2 changes: 1 addition & 1 deletion libs/cosmos-sdk/types/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type Cache struct {
}

func initCacheParam() {
UseCache = viper.GetBool(FlagMultiCache)
UseCache = false

if data := viper.GetInt(MaxAccInMultiCache); data != 0 {
maxAccInMap = data
Expand Down

0 comments on commit d5f2166

Please sign in to comment.