mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +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 {
|
} else {
|
||||||
blob = ReadStorageTrieNode(db, owner, path)
|
blob = ReadStorageTrieNode(db, owner, path)
|
||||||
}
|
}
|
||||||
|
if len(blob) == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
h := newHasher()
|
h := newHasher()
|
||||||
defer h.release()
|
defer h.release()
|
||||||
if h.hash(blob) != hash {
|
if h.hash(blob) != hash {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue