Unverified Commit d46184c9 authored by rjl493456442's avatar rjl493456442 Committed by GitHub

core/state: filter out nil trie for copy (#25575)

parent d79bd2f0
...@@ -126,6 +126,9 @@ func (p *triePrefetcher) copy() *triePrefetcher { ...@@ -126,6 +126,9 @@ func (p *triePrefetcher) copy() *triePrefetcher {
// If the prefetcher is already a copy, duplicate the data // If the prefetcher is already a copy, duplicate the data
if p.fetches != nil { if p.fetches != nil {
for root, fetch := range p.fetches { for root, fetch := range p.fetches {
if fetch == nil {
continue
}
copy.fetches[root] = p.db.CopyTrie(fetch) copy.fetches[root] = p.db.CopyTrie(fetch)
} }
return copy return copy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment