diff --git a/cmd/rpcdaemon/commands/eth_call.go b/cmd/rpcdaemon/commands/eth_call.go index d72903cc286..4b069fb173c 100644 --- a/cmd/rpcdaemon/commands/eth_call.go +++ b/cmd/rpcdaemon/commands/eth_call.go @@ -385,6 +385,9 @@ func (api *APIImpl) GetProof(ctx context.Context, address libcommon.Address, sto if err != nil { return nil, err } + if a == nil { + return nil, nil + } pr, err := trie.NewProofRetainer(address, a, storageKeys, rl) if err != nil { return nil, err diff --git a/turbo/trie/trie_root.go b/turbo/trie/trie_root.go index 996ef935cb4..459a8443618 100644 --- a/turbo/trie/trie_root.go +++ b/turbo/trie/trie_root.go @@ -328,21 +328,6 @@ func (r *RootHashAggregator) Receive(itemType StreamItem, hasTree bool, cutoff int, ) error { - //r.traceIf("9c3dc2561d472d125d8f87dde8f2e3758386463ade768ae1a1546d34101968bb", "00") - //if storageKey == nil { - // //if bytes.HasPrefix(accountKey, common.FromHex("08050d07")) { - // fmt.Printf("1: %d, %x, %x\n", itemType, accountKey, hash) - // //} - //} else { - // //if bytes.HasPrefix(accountKey, common.FromHex("876f5a0f54b30254d2bad26bb5a8da19cbe748fd033004095d9c96c8e667376b")) && bytes.HasPrefix(storageKey, common.FromHex("")) { - // //fmt.Printf("%x\n", storageKey) - // fmt.Printf("1: %d, %x, %x, %x\n", itemType, accountKey, storageKey, hash) - // //} - //} - // - - fmt.Printf("1: %d, %x, %x, %x\n", itemType, accountKey, storageKey, hash) - switch itemType { case StorageStreamItem: if len(r.currAccK) == 0 {