forked from cerc-io/laconicd-deprecated
Fix caching code size
This commit is contained in:
parent
377b7f06c5
commit
d2b304535b
@ -166,7 +166,7 @@ func (db *Database) CopyTrie(ethstate.Trie) ethstate.Trie {
|
||||
func (db *Database) ContractCode(addrHash, codeHash ethcommon.Hash) ([]byte, error) {
|
||||
code := db.codeDB.Get(codeHash[:])
|
||||
|
||||
db.codeSizeCache.Add(codeHash, code)
|
||||
db.codeSizeCache.Add(codeHash, len(code))
|
||||
return code, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user