eth, ethdb: lower the amount of open files & improve err messages for db

Closes #880
pull/932/head
obscuren 10 years ago
parent d82caa5ce3
commit 96d4a7d087
  1. 1
      eth/backend.go

@ -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…
Cancel
Save