Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Merge PR: add leveldb config (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisliu2048 authored Aug 31, 2021
1 parent 3dad68a commit cebb8df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/tendermint/tendermint/p2p"
pvm "github.com/tendermint/tendermint/privval"
"github.com/tendermint/tendermint/proxy"
tmdb "github.com/tendermint/tm-db"
)

// Tendermint full-node start flags
Expand Down Expand Up @@ -127,6 +128,8 @@ which accepts a path for the resulting pprof file.
cmd.Flags().String(FlagEvmImportPath, "", "Evm contract & storage db or files used for InitGenesis")
cmd.Flags().Uint64(FlagGoroutineNum, 0, "Limit on the number of goroutines used to import evm data(ignored if evm-import-mode is 'default')")
cmd.Flags().IntVar(&iavl.IavlCacheSize, iavl.FlagIavlCacheSize, 1000000, "Max size of iavl cache")
cmd.Flags().IntVar(&tmdb.LevelDBCacheSize, tmdb.FlagLevelDBCacheSize, 128, "The amount of memory in megabytes to allocate to leveldb")
cmd.Flags().IntVar(&tmdb.LevelDBHandlersNum, tmdb.FlagLevelDBHandlersNum, 1024, "The number of files handles to allocate to the open database files")

viper.BindPFlag(FlagTrace, cmd.Flags().Lookup(FlagTrace))
viper.BindPFlag(FlagPruning, cmd.Flags().Lookup(FlagPruning))
Expand Down

0 comments on commit cebb8df

Please sign in to comment.