Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
c074e6d8
Commit
c074e6d8
authored
Aug 24, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic implementation of bitswap, needs testing/verification that it works
parent
4e418a76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
merkledag.go
merkledag.go
+2
-1
No files found.
merkledag.go
View file @
c074e6d8
...
...
@@ -4,6 +4,7 @@ import (
"fmt"
blocks
"github.com/jbenet/go-ipfs/blocks"
bserv
"github.com/jbenet/go-ipfs/blockservice"
u
"github.com/jbenet/go-ipfs/util"
mh
"github.com/jbenet/go-multihash"
)
...
...
@@ -93,7 +94,7 @@ func (n *Node) Key() (u.Key, error) {
// - the root is virtual (like a forest)
// - stores nodes' data in a BlockService
type
DAGService
struct
{
Blocks
*
b
locks
.
BlockService
Blocks
*
b
serv
.
BlockService
}
// Put adds a node to the DAGService, storing the block in the BlockService
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment