fix lint issue

This commit is contained in:
Sahil-4555 2025-10-17 15:35:15 +05:30
parent 5f53eda30f
commit 3440ce6643
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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