aboutsummaryrefslogtreecommitdiffstats
path: root/common/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/types.go')
-rw-r--r--common/types.go4
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