Skip to content

Commit

Permalink
core/state: filter out nil trie for copy (#25575)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and minh-bq committed Aug 14, 2023
1 parent 5402fde commit aa10c38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/state/trie_prefetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,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 aa10c38

Please sign in to comment.