Skip to content

Commit

Permalink
core/state: change log level for failing to prefetch trie
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Nov 26, 2024
1 parent 030d8fa commit fb7cb3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ func (s *StateDB) getStateObject(addr common.Address) *stateObject {
// Schedule the resolved account for prefetching if it's enabled.
if s.prefetcher != nil {
if err := s.prefetcher.prefetch(common.Hash{}, s.originalRoot, common.Address{}, [][]byte{addr[:]}, true); err != nil {
log.Debug("Failed to prefetch account", "addr", addr, "err", err)
log.Error("Failed to prefetch account", "addr", addr, "err", err)
}
}
// Insert into the live set
Expand Down Expand Up @@ -999,7 +999,7 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
start = time.Now()
if s.prefetcher != nil {
if trie := s.prefetcher.trie(common.Hash{}, s.originalRoot); trie == nil {
log.Error("Failed to retrieve account pre-fetcher trie")
log.Debug("Failed to retrieve account pre-fetcher trie")
} else {
s.trie = trie
}
Expand Down

0 comments on commit fb7cb3f

Please sign in to comment.