node: do not double wrap KV stores

For no apparent reason, KV stores were getting
wrapped in nofreezedb first and then in freezerdb.
This commit is contained in:
Ömer Faruk IRMAK 2025-06-24 19:54:35 +03:00
parent 6eab053088
commit 03cecc0c1a

View file

@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r
return nil, err return nil, err
} }
log.Info("Using LevelDB as the backing database") 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 // 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 { if err != nil {
return nil, err return nil, err
} }
return rawdb.NewDatabase(db), nil return db, nil
} }