mirror of https://github.com/status-im/op-geth.git
eth, ethdb: lower the amount of open files & improve err messages for db
Closes #880
This commit is contained in:
parent
d82caa5ce3
commit
96d4a7d087
|
@ -207,6 +207,7 @@ func New(config *Config) (*Ethereum, error) {
|
|||
logger.NewJSONsystem(config.DataDir, config.LogJSON)
|
||||
}
|
||||
|
||||
// Let the database take 3/4 of the max open files (TODO figure out a way to get the actual limit of the open files)
|
||||
const dbCount = 3
|
||||
ethdb.OpenFileLimit = 256 / (dbCount + 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue