From 03cecc0c1a56f623e8c0c7da08e95e4afa70f3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20IRMAK?= Date: Tue, 24 Jun 2025 19:54:35 +0300 Subject: [PATCH] node: do not double wrap KV stores For no apparent reason, KV stores were getting wrapped in nofreezedb first and then in freezerdb. --- node/database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/database.go b/node/database.go index 44bea10307..274ccbfa7e 100644 --- a/node/database.go +++ b/node/database.go @@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r return nil, err } log.Info("Using LevelDB as the backing database") - return rawdb.NewDatabase(db), nil + return db, nil } // newPebbleDBDatabase creates a persistent key-value database without a freezer @@ -119,5 +119,5 @@ func newPebbleDBDatabase(file string, cache int, handles int, namespace string, if err != nil { return nil, err } - return rawdb.NewDatabase(db), nil + return db, nil }