core/rawdb: skip pathdb state inspection in hashdb mode (#28108)

This commit is contained in:
Péter Szilágyi 2023-09-13 15:13:10 +03:00 committed by GitHub
parent 43df612268
commit 8d38b1fe62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,9 @@ func inspectFreezers(db ethdb.Database) ([]freezerInfo, error) {
infos = append(infos, info) infos = append(infos, info)
case stateFreezerName: case stateFreezerName:
if ReadStateScheme(db) != PathScheme {
continue
}
datadir, err := db.AncientDatadir() datadir, err := db.AncientDatadir()
if err != nil { if err != nil {
return nil, err return nil, err