Skip to content

Commit

Permalink
fix: fix inspect database error
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed May 21, 2024
1 parent 1090f17 commit 183d49b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/rawdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,9 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
trieIter = db.StateStore().NewIterator(keyPrefix, nil)
defer trieIter.Release()
}
if db.BlockStore() != db {

blockStore := db.BlockStore()
if _, ok := blockStore.(*freezerdb); !ok {
blockIter = db.BlockStore().NewIterator(keyPrefix, nil)
defer blockIter.Release()
}
Expand Down

0 comments on commit 183d49b

Please sign in to comment.