core/state: remove the need for common.Value

This commit is contained in:
obscuren 2015-06-17 11:30:42 +02:00
parent 787a61bb27
commit 30b27336ea
1 changed files with 4 additions and 2 deletions

View File

@ -128,8 +128,10 @@ func (self *StateObject) MarkForDeletion() {
}
}
func (c *StateObject) getAddr(addr common.Hash) (ret common.Hash) {
return common.BytesToHash(common.NewValueFromBytes([]byte(c.State.trie.Get(addr[:]))).Bytes())
func (c *StateObject) getAddr(addr common.Hash) common.Hash {
var ret []byte
rlp.DecodeBytes(c.State.trie.Get(addr[:]), &ret)
return common.BytesToHash(ret)
}
func (c *StateObject) setAddr(addr []byte, value common.Hash) {