From 72005f9f2c20fb8c80fa00b83a88020f04cc7437 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 5 Jan 2023 22:51:42 +0100 Subject: [PATCH] docs: remove default iavl-cache-size invalid value (backport #14486) (#14517) Co-authored-by: Marc-Antoine Dumais <62179452+mdumais-stratos@users.noreply.github.com> --- server/config/config.go | 2 +- server/config/toml.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 8bf29fbd9278..da2d6d15f0d4 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -294,7 +294,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 967fea563c3c..7e9ad9771bdd 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.