From e0d7df03f19665232ff516064215ed134cf9f135 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Wed, 12 Aug 2020 14:27:20 -0700 Subject: [PATCH] reduce file handle needed for level db (#3295) --- internal/shardchain/dbfactory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shardchain/dbfactory.go b/internal/shardchain/dbfactory.go index fdc64b97d..bfc9ebe61 100644 --- a/internal/shardchain/dbfactory.go +++ b/internal/shardchain/dbfactory.go @@ -22,7 +22,7 @@ type LDBFactory struct { // NewChainDB returns a new LDB for the blockchain for given shard. func (f *LDBFactory) NewChainDB(shardID uint32) (ethdb.Database, error) { dir := path.Join(f.RootDir, fmt.Sprintf("harmony_db_%d", shardID)) - return ethdb.NewLDBDatabase(dir, 128, 1024) + return ethdb.NewLDBDatabase(dir, 128, 64) } // MemDBFactory is a memory-backed blockchain database factory.