From 30fb8bf3e67c6644beaf6f83be1d251f9c2230e5 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Dumais Date: Wed, 4 Jan 2023 16:40:18 -0500 Subject: [PATCH] updating iavl-cache-size docs --- server/config/config.go | 2 +- server/config/toml.go | 3 +-- x/group/client/cli/prompt.go | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 2ea09aaeb79c..51939ec3d272 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -260,7 +260,7 @@ func DefaultConfig() *Config { PruningInterval: "0", MinRetainBlocks: 0, IndexEvents: make([]string, 0), - IAVLCacheSize: 781250, // 50 MB + IAVLCacheSize: 781250, IAVLDisableFastNode: false, AppDBBackend: "", }, diff --git a/server/config/toml.go b/server/config/toml.go index 6057a549c690..dc00dbca6592 100644 --- a/server/config/toml.go +++ b/server/config/toml.go @@ -70,8 +70,7 @@ inter-block-cache = {{ .BaseConfig.InterBlockCache }} # ["message.sender", "message.recipient"] index-events = [{{ range .BaseConfig.IndexEvents }}{{ printf "%q, " . }}{{end}}] -# IavlCacheSize set the size of the iavl tree cache. -# Default cache size is 50mb. +# IavlCacheSize set the size of the iavl tree cache (in number of nodes). iavl-cache-size = {{ .BaseConfig.IAVLCacheSize }} # IAVLDisableFastNode enables or disables the fast node feature of IAVL. diff --git a/x/group/client/cli/prompt.go b/x/group/client/cli/prompt.go index 4d06e3093395..aa962e9671c7 100644 --- a/x/group/client/cli/prompt.go +++ b/x/group/client/cli/prompt.go @@ -31,7 +31,6 @@ type proposalType struct { // Prompt the proposal type values and return the proposal and its metadata. func (p *proposalType) Prompt(cdc codec.Codec) (*Proposal, govtypes.ProposalMetadata, error) { - // set metadata metadata, err := govcli.Prompt(govtypes.ProposalMetadata{}, "proposal") if err != nil {