Skip to content

Commit

Permalink
fix: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VM committed May 29, 2024
1 parent 6171310 commit 0d87ba6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion triedb/pathdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0d87ba6

Please sign in to comment.