mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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) {
|
||||
return
|
||||
}
|
||||
if s.bloom.Contains(hash[:]) {
|
||||
if s.bloom == nil || s.bloom.Contains(hash[:]) {
|
||||
// Bloom filter says this might be a duplicate, double check.
|
||||
// If database says yes, the blob is present for sure.
|
||||
// Note we only check the existence with new code scheme, fast
|
||||
|
|
|
|||
Loading…
Reference in a new issue