From 7fd8e63e02b82abacc3dc18759cb3373e79f20a4 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 5f1b40024..8c4543d4e 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 = 300 << 20 opts.CompactL0OnClose = true opts.MetricsEnabled = false opts.Logger = &badgerLogger{log}