mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
core/rawdb: address martin's comment
This commit is contained in:
parent
adc4b72c7e
commit
504f36d68b
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ func ReadTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash
|
|||
} else {
|
||||
blob = ReadStorageTrieNode(db, owner, path)
|
||||
}
|
||||
if len(blob) == 0 {
|
||||
return nil
|
||||
}
|
||||
h := newHasher()
|
||||
defer h.release()
|
||||
if h.hash(blob) != hash {
|
||||
|
|
|
|||
Loading…
Reference in a new issue