Skip to content

Commit c2fcc27

Browse files
authored
core/rawdb: fix misleading comment in HasTrieNode (#32599)
1 parent a306239 commit c2fcc27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/rawdb/accessors_trie.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func HasTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash c
150150
if len(blob) == 0 {
151151
return false
152152
}
153-
return crypto.Keccak256Hash(blob) == hash // exists but not match
153+
return crypto.Keccak256Hash(blob) == hash // exist and match
154154
default:
155155
panic(fmt.Sprintf("Unknown scheme %v", scheme))
156156
}
@@ -173,7 +173,7 @@ func ReadTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash
173173
return nil
174174
}
175175
if crypto.Keccak256Hash(blob) != hash {
176-
return nil // exists but not match
176+
return nil // exist but not match
177177
}
178178
return blob
179179
default:

0 commit comments

Comments
 (0)