diff --git a/core/rawdb/database.go b/core/rawdb/database.go index 356abbf8394c..4e3b18eead05 100644 --- a/core/rawdb/database.go +++ b/core/rawdb/database.go @@ -533,6 +533,9 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error { case IsStorageTrieNode(key): storageTries.Add(size) case bytes.HasPrefix(key, CodePrefix) && len(key) == len(CodePrefix)+common.HashLength: + // This case can conflict, although unlikely, with the following cases below: + // - bytes.HasPrefix(key, ChtIndexTablePrefix): a key "c"+hash could start with "chtIndexV2-" + // - bytes.HasPrefix(key, ChtPrefix): a key "c"+hash could start with "chtRootV2-" codes.Add(size) case bytes.HasPrefix(key, txLookupPrefix) && len(key) == (len(txLookupPrefix)+common.HashLength): txLookups.Add(size)