mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-07 03:45:02 +00:00
core/state: filter out nil trie for copy (#25575)
This commit is contained in:
parent
d79bd2f0f6
commit
d46184c969
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue