diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-18 20:29:53 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-18 20:29:53 +0800 |
commit | 2cea41065609dbebdd3856a00e9333566945ebee (patch) | |
tree | db3dc8b4fe4b07b9f24493e70def40812dad1686 /common | |
parent | 53a6145a2bd6f733799375700d117c9674e8207b (diff) | |
parent | 430bcdb21959e018fbc93bac0ccd8bbfa2fd5afb (diff) | |
download | dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar.gz dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar.bz2 dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar.lz dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar.xz dexon-2cea41065609dbebdd3856a00e9333566945ebee.tar.zst dexon-2cea41065609dbebdd3856a00e9333566945ebee.zip |
Merge pull request #1282 from obscuren/state-cleanup
core/state: cleanup & optimisations
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 |