diff --git a/core/state/statedb.go b/core/state/statedb.go index 2fcb36260d..bbca38dca6 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1221,7 +1221,7 @@ func (s *StateDB) commit(deleteEmptyObjects bool, noStorageWiping bool, blockNum } if s.prefetcher != nil { - // Gather all account addresses with mutations + // Gather all account addresses with mutations dirtyAccounts := s.getDirtyAccountAddresses() if err := s.prefetcher.PrefetchAccounts(dirtyAccounts); err != nil { log.Warn("Failed to prefetch account trie nodes before parallel hashing", "err", err) diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 1d5d19ca66..edb4c9879e 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -220,11 +220,11 @@ func (p *triePrefetcher) trieID(owner common.Hash, root common.Hash) string { // PrefetchAccounts triggers prefetching account trie nodes given a list of accounts. func (p *triePrefetcher) PrefetchAccounts(accounts []common.Address) error { - if p == nil { - return nil - } - // The account trie owner hash is zero (empty) as per convention. - return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false) + if p == nil { + return nil + } + // The account trie owner hash is zero (empty) as per convention. + return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false) } // subfetcher is a trie fetcher goroutine responsible for pulling entries for a