mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
fix lint issue
This commit is contained in:
parent
5f53eda30f
commit
3440ce6643
2 changed files with 6 additions and 6 deletions
|
|
@ -1221,7 +1221,7 @@ func (s *StateDB) commit(deleteEmptyObjects bool, noStorageWiping bool, blockNum
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.prefetcher != nil {
|
if s.prefetcher != nil {
|
||||||
// Gather all account addresses with mutations
|
// Gather all account addresses with mutations
|
||||||
dirtyAccounts := s.getDirtyAccountAddresses()
|
dirtyAccounts := s.getDirtyAccountAddresses()
|
||||||
if err := s.prefetcher.PrefetchAccounts(dirtyAccounts); err != nil {
|
if err := s.prefetcher.PrefetchAccounts(dirtyAccounts); err != nil {
|
||||||
log.Warn("Failed to prefetch account trie nodes before parallel hashing", "err", err)
|
log.Warn("Failed to prefetch account trie nodes before parallel hashing", "err", err)
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// PrefetchAccounts triggers prefetching account trie nodes given a list of accounts.
|
||||||
func (p *triePrefetcher) PrefetchAccounts(accounts []common.Address) error {
|
func (p *triePrefetcher) PrefetchAccounts(accounts []common.Address) error {
|
||||||
if p == nil {
|
if p == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// The account trie owner hash is zero (empty) as per convention.
|
// The account trie owner hash is zero (empty) as per convention.
|
||||||
return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false)
|
return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// subfetcher is a trie fetcher goroutine responsible for pulling entries for a
|
// subfetcher is a trie fetcher goroutine responsible for pulling entries for a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue