Skip to content

Commit

Permalink
core/state: filter out nil trie for copy (ethereum#25575)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and jagdeep sidhu committed Sep 2, 2022
1 parent 4bd1c49 commit 01c6d54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/state/trie_prefetcher.go
Expand Up @@ -126,6 +126,9 @@ func (p *triePrefetcher) copy() *triePrefetcher {
// If the prefetcher is already a copy, duplicate the data
if p.fetches != nil {
for root, fetch := range p.fetches {
if fetch == nil {
continue
}
copy.fetches[root] = p.db.CopyTrie(fetch)
}
return copy
Expand Down

0 comments on commit 01c6d54

Please sign in to comment.