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
a85c958b
Commit
a85c958b
authored
Sep 07, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQUASHME: some cleanup
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
1268b9cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
merkledag.go
merkledag.go
+6
-0
No files found.
merkledag.go
View file @
a85c958b
...
@@ -119,6 +119,12 @@ type NodeOption struct {
...
@@ -119,6 +119,12 @@ type NodeOption struct {
Err
error
Err
error
}
}
// TODO: this is a mid-term hack to get around the fact that blocks don't
// have full CIDs and potentially (though we don't know of any such scenario)
// may have the same block with multiple different encodings.
// We have discussed the possiblity of using CIDs as datastore keys
// in the future. This would be a much larger changeset than i want to make
// right now.
func
cidsToKeyMapping
(
cids
[]
*
cid
.
Cid
)
map
[
key
.
Key
]
*
cid
.
Cid
{
func
cidsToKeyMapping
(
cids
[]
*
cid
.
Cid
)
map
[
key
.
Key
]
*
cid
.
Cid
{
mapping
:=
make
(
map
[
key
.
Key
]
*
cid
.
Cid
)
mapping
:=
make
(
map
[
key
.
Key
]
*
cid
.
Cid
)
for
_
,
c
:=
range
cids
{
for
_
,
c
:=
range
cids
{
...
...
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