mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
chore: add warning logs for errors not thrown
This commit is contained in:
parent
033de2a05b
commit
3300dc1a20
1 changed files with 2 additions and 0 deletions
|
|
@ -277,10 +277,12 @@ func ServiceGetAccountRangeQuery(chain *core.BlockChain, req *GetAccountRangePac
|
|||
// Retrieve the requested state and bail out if non existent
|
||||
tr, err := trie.New(trie.StateTrieID(req.Root), chain.TrieDB())
|
||||
if err != nil {
|
||||
log.Warn("Failed to open account trie", "root", req.Root, "err", err)
|
||||
return nil, nil
|
||||
}
|
||||
it, err := chain.Snapshots().AccountIterator(req.Root, req.Origin)
|
||||
if err != nil {
|
||||
log.Warn("Failed to open account iterator", "root", req.Root, "origin", req.Origin, "err", err)
|
||||
return nil, nil
|
||||
}
|
||||
// Iterate over the requested range and pile accounts up
|
||||
|
|
|
|||
Loading…
Reference in a new issue