Commit 45092e19 authored by Jeromy's avatar Jeromy

add blockset and bloomfilter and beginnings of pinning service

parent 7fe2ad68
...@@ -59,6 +59,14 @@ func MakeLink(n *Node) (*Link, error) { ...@@ -59,6 +59,14 @@ func MakeLink(n *Node) (*Link, error) {
}, nil }, nil
} }
func (l *Link) GetNode(serv *DAGService) (*Node, error) {
if l.Node != nil {
return l.Node, nil
}
return serv.Get(u.Key(l.Hash))
}
// AddNodeLink adds a link to another node. // AddNodeLink adds a link to another node.
func (n *Node) AddNodeLink(name string, that *Node) error { func (n *Node) AddNodeLink(name string, that *Node) error {
lnk, err := MakeLink(that) lnk, err := MakeLink(that)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment