OSDN Git Service

add NewCrossInViewpoint
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 27 May 2019 08:40:44 +0000 (16:40 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 27 May 2019 08:40:44 +0000 (16:40 +0800)
protocol/state/cross_in_view.go

index e7391bd..26f2838 100644 (file)
@@ -1,5 +1,15 @@
 package state
 
+import (
+       "github.com/vapor/protocol/bc"
+)
+
 type CrossInViewpoint struct {
        Entries map[bc.Hash]bool
 }
+
+func NewCrossInViewpoint() *CrossInViewpoint {
+       return &CrossInViewpoint{
+               Entries: make(map[bc.Hash]bool),
+       }
+}