diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-17 17:24:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-17 17:24:40 +0800 |
commit | 787a61bb27b9f51f4af67c69eb8f1c5869ae3144 (patch) | |
tree | 33405ad345b4350940eb163339c5a5de711bfc6e /common | |
parent | 5721fcf668f8ab798b6602dc6ff88726bf0c8f86 (diff) | |
download | go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar.gz go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar.bz2 go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar.lz go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar.xz go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.tar.zst go-tangerine-787a61bb27b9f51f4af67c69eb8f1c5869ae3144.zip |
core/state, core/vm: reworked storage get / set to use common.Hash
Diffstat (limited to 'common')
-rw-r--r-- | common/types.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/types.go b/common/types.go index d05c21eec..e41112a77 100644 --- a/common/types.go +++ b/common/types.go @@ -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 |