core/state: remove redundant code

This commit is contained in:
LLLeon 2018-04-02 14:27:43 +08:00
parent a095b84ec5
commit 354a01a659

View file

@ -151,9 +151,6 @@ func (db *cachingDB) ContractCodeSize(addrHash, codeHash common.Hash) (int, erro
return cached.(int), nil
}
code, err := db.ContractCode(addrHash, codeHash)
if err == nil {
db.codeSizeCache.Add(codeHash, len(code))
}
return len(code), err
}