Commit c074e6d8 authored by Jeromy's avatar Jeromy

basic implementation of bitswap, needs testing/verification that it works

parent 4e418a76
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
blocks "github.com/jbenet/go-ipfs/blocks" blocks "github.com/jbenet/go-ipfs/blocks"
bserv "github.com/jbenet/go-ipfs/blockservice"
u "github.com/jbenet/go-ipfs/util" u "github.com/jbenet/go-ipfs/util"
mh "github.com/jbenet/go-multihash" mh "github.com/jbenet/go-multihash"
) )
...@@ -93,7 +94,7 @@ func (n *Node) Key() (u.Key, error) { ...@@ -93,7 +94,7 @@ func (n *Node) Key() (u.Key, error) {
// - the root is virtual (like a forest) // - the root is virtual (like a forest)
// - stores nodes' data in a BlockService // - stores nodes' data in a BlockService
type DAGService struct { type DAGService struct {
Blocks *blocks.BlockService Blocks *bserv.BlockService
} }
// Put adds a node to the DAGService, storing the block in the BlockService // Put adds a node to the DAGService, storing the block in the BlockService
......
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