diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index f60677fc93..eb433410dd 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -185,7 +185,13 @@ func New(diskdb ethdb.Database, config *Config) *Database { // Because the freezer can only be opened once at the same time, this // mechanism also ensures that at most one **non-readOnly** database // is opened at the same time to prevent accidental mutation. - if ancient, err := diskdb.AncientDatadir(); err == nil && ancient != "" && !db.readOnly && !config.NoTries { + ancient, err := diskdb.AncientDatadir() + log.Info("iuweuhwiu", "ancient", ancient) + log.Info("239er4ugh", "err", err) + log.Info("2iojr23", "!db.readOnly", !db.readOnly) + log.Info("23892hf", "!config.NoTries", !config.NoTries) + if err == nil && ancient != "" && !db.readOnly && !config.NoTries { + log.Info("238rh2fhu") offset := uint64(0) // differ from in block data, only metadata is used in state data freezer, err := rawdb.NewStateFreezer(ancient, false, offset) if err != nil {