mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
trie: check nil bloom (#1039)
This commit is contained in:
parent
1472f3b1eb
commit
b94b29b8d0
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ func (s *Sync) AddCodeEntry(hash common.Hash, depth int, parent common.Hash) {
|
||||||
if s.membatch.hasCode(hash) {
|
if s.membatch.hasCode(hash) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if s.bloom.Contains(hash[:]) {
|
if s.bloom == nil || s.bloom.Contains(hash[:]) {
|
||||||
// Bloom filter says this might be a duplicate, double check.
|
// Bloom filter says this might be a duplicate, double check.
|
||||||
// If database says yes, the blob is present for sure.
|
// If database says yes, the blob is present for sure.
|
||||||
// Note we only check the existence with new code scheme, fast
|
// Note we only check the existence with new code scheme, fast
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue