core/state, core/vm: reworked storage get / set to use common.Hash

This commit is contained in:
obscuren
2015-06-17 11:24:40 +02:00
parent 5721fcf668
commit 787a61bb27
5 changed files with 45 additions and 41 deletions

View File

@ -62,6 +62,10 @@ func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value {
return reflect.ValueOf(h)
}
func EmptyHash(h Hash) bool {
return h == Hash{}
}
/////////// Address
func BytesToAddress(b []byte) Address {
var a Address