From 67dbfc530fa0b41814e3b61bafe6ee2c4e5f803b Mon Sep 17 00:00:00 2001 From: VM Date: Tue, 28 May 2024 18:24:07 +0800 Subject: [PATCH] fix: update logs --- core/rawdb/database.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/rawdb/database.go b/core/rawdb/database.go index 0f7fb77a5c..d94989951e 100644 --- a/core/rawdb/database.go +++ b/core/rawdb/database.go @@ -328,9 +328,6 @@ func NewDatabase(db ethdb.KeyValueStore) ethdb.Database { type emptyfreezedb struct { ethdb.KeyValueStore - diffStore ethdb.KeyValueStore - stateStore ethdb.Database - blockStore ethdb.Database } // HasAncient returns nil for pruned db that we don't have a backing chain freezer. @@ -405,6 +402,7 @@ func (db *emptyfreezedb) SetStateStore(state ethdb.Database) {} func (db *emptyfreezedb) StateStoreReader() ethdb.Reader { return db } func (db *emptyfreezedb) BlockStore() ethdb.Database { return db } func (db *emptyfreezedb) SetBlockStore(block ethdb.Database) {} +func (db *emptyfreezedb) HasSeparateBlockStore() bool { return false } func (db *emptyfreezedb) BlockStoreReader() ethdb.Reader { return db } func (db *emptyfreezedb) BlockStoreWriter() ethdb.Writer { return db } func (db *emptyfreezedb) ReadAncients(fn func(reader ethdb.AncientReaderOp) error) (err error) { @@ -483,7 +481,7 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, ancient string, namespace st // This case is used for someone who wants to execute geth db inspect CLI in a pruned db if !disableFreeze && readonly && ReadAncientType(db) == PruneFreezerType { - log.Warn("Disk db is pruned, return an empty freezer db which is used for CLI") + log.Warn("Disk db is pruned, using an empty freezer db for CLI") return NewEmptyFreezeDB(db), nil }