Skip to content

Commit

Permalink
feat: increase default cache allowance to 4096 MB for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
khangnt-coin98 committed Nov 30, 2024
1 parent 842f746 commit 4a5bd22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/tomo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ func prepare(ctx *cli.Context) {

// If we're a full node on mainnet without --cache specified, bump default cache allowance
if !ctx.IsSet(utils.CacheFlag.Name) {
log.Info("Bumping default cache on mainnet", "provided", ctx.Int(utils.CacheFlag.Name), "updated", 4096)
ctx.Set(utils.CacheFlag.Name, strconv.Itoa(4096))
log.Info("Bumping default cache on mainnet", "value", utils.CacheFlag.Value)
ctx.Set(utils.CacheFlag.Name, strconv.Itoa(utils.CacheFlag.Value))
}
// Note: This features below will be improved and updated in future releases.
// Start metrics export if enabled
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ var (
CacheFlag = cli.IntFlag{
Name: "cache",
Usage: "Megabytes of memory allocated to internal caching",
Value: 1024,
Value: 4096,
}
CacheDatabaseFlag = cli.IntFlag{
Name: "cache.database",
Expand Down

0 comments on commit 4a5bd22

Please sign in to comment.