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

Closes #880
This commit is contained in:
obscuren 2015-05-12 11:28:33 +02:00
parent d82caa5ce3
commit 96d4a7d087

View File

@ -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)