OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c5d47
)
add NewCrossInViewpoint
author
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 27 May 2019 08:40:44 +0000
(16:40 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Mon, 27 May 2019 08:40:44 +0000
(16:40 +0800)
protocol/state/cross_in_view.go
patch
|
blob
|
history
diff --git
a/protocol/state/cross_in_view.go
b/protocol/state/cross_in_view.go
index
e7391bd
..
26f2838
100644
(file)
--- a/
protocol/state/cross_in_view.go
+++ b/
protocol/state/cross_in_view.go
@@
-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),
+ }
+}