From 77fdb8df4e418d7dd3359d39e498785fc49d1e4e Mon Sep 17 00:00:00 2001 From: qianbin Date: Tue, 8 Jan 2019 11:17:20 +0800 Subject: [PATCH] adjust leveldb default cache size --- cmd/thor/must.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thor/must.go b/cmd/thor/must.go index 9bef567c4..53c104965 100644 --- a/cmd/thor/must.go +++ b/cmd/thor/must.go @@ -112,7 +112,7 @@ func openMainDB(ctx *cli.Context, dataDir string) *lvldb.LevelDB { dir := filepath.Join(dataDir, "main.db") db, err := lvldb.New(dir, lvldb.Options{ - CacheSize: 128, + CacheSize: 256, OpenFilesCacheCapacity: fileCache, }) if err != nil {