mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
core/rawdb: fix misleading comment in HasTrieNode (PathScheme)
This commit is contained in:
parent
5d09aa316f
commit
50bd43a122
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ func HasTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash c
|
||||||
if len(blob) == 0 {
|
if len(blob) == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return crypto.Keccak256Hash(blob) == hash // exists but not match
|
return crypto.Keccak256Hash(blob) == hash // exists and match
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("Unknown scheme %v", scheme))
|
panic(fmt.Sprintf("Unknown scheme %v", scheme))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue