aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-21 17:45:35 +0800
committerobscuren <geffobscura@gmail.com>2015-05-21 17:45:35 +0800
commit207bd5575161fa2bc61a7ccf659c11878575dd32 (patch)
treedd7ebcf31a61c4d282d3798a7f5b099de18a2d1a /eth/backend.go
parent84cd618585ce21c7a1907798ddc69601402e9de5 (diff)
downloadgo-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar.gz
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar.bz2
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar.lz
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar.xz
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.tar.zst
go-tangerine-207bd5575161fa2bc61a7ccf659c11878575dd32.zip
eth: reduced max open files for LevelDB
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 44ceb89e8..69504fd94 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -213,7 +213,7 @@ func New(config *Config) (*Ethereum, error) {
// 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)
+ ethdb.OpenFileLimit = 128 / (dbCount + 1)
newdb := config.NewDB
if newdb == nil {