mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/ethapi: no need to check zero hash
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
bf7d3a35c1
commit
8d4f78c540
1 changed files with 0 additions and 6 deletions
|
|
@ -689,13 +689,7 @@ func (s *BlockChainAPI) GetProof(ctx context.Context, address common.Address, st
|
|||
return nil, err
|
||||
}
|
||||
codeHash := statedb.GetCodeHash(address)
|
||||
if codeHash == (common.Hash{}) {
|
||||
codeHash = types.EmptyCodeHash
|
||||
}
|
||||
storageRoot := statedb.GetStorageRoot(address)
|
||||
if storageRoot == (common.Hash{}) {
|
||||
storageRoot = types.EmptyRootHash
|
||||
}
|
||||
|
||||
if len(keys) > 0 {
|
||||
var storageTrie state.Trie
|
||||
|
|
|
|||
Loading…
Reference in a new issue