From 1b474c01ac14893b6723a40ee12847875e3e7dcd Mon Sep 17 00:00:00 2001 From: Philemon Ukane Date: Sat, 24 Dec 2022 18:32:38 +0100 Subject: [PATCH] increase block cache size for stakedb --- stakedb/ticketpool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/stakedb/ticketpool.go b/stakedb/ticketpool.go index 5f1b400246..deb2be89de 100644 --- a/stakedb/ticketpool.go +++ b/stakedb/ticketpool.go @@ -172,6 +172,7 @@ func dbVersion(db *badger.DB) (uint32, error) { func badgerOptions(badgerDbPath string) badger.Options { opts := badger.DefaultOptions(badgerDbPath) opts.DetectConflicts = false + opts.BlockCacheSize = 1 << 29 opts.CompactL0OnClose = true opts.MetricsEnabled = false opts.Logger = &badgerLogger{log}