core, eth, les, trie: add a prefix to contract code (#21080)
This commit is contained in:
@ -130,8 +130,7 @@ func (t *SecureTrie) GetKey(shaKey []byte) []byte {
|
||||
if key, ok := t.getSecKeyCache()[string(shaKey)]; ok {
|
||||
return key
|
||||
}
|
||||
key, _ := t.trie.db.preimage(common.BytesToHash(shaKey))
|
||||
return key
|
||||
return t.trie.db.preimage(common.BytesToHash(shaKey))
|
||||
}
|
||||
|
||||
// Commit writes all nodes and the secure hash pre-images to the trie's database.
|
||||
|
Reference in New Issue
Block a user