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
9d059951
Commit
9d059951
authored
Oct 27, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up some code, update cbor package, and add tests
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
b783f032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
merkledag.go
merkledag.go
+1
-5
No files found.
merkledag.go
View file @
9d059951
...
...
@@ -14,7 +14,7 @@ import (
logging
"gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log"
node
"gx/ipfs/QmU7bFWQ793qmvNy7outdCaMfSDNk8uqhx4VNrxYj5fj5g/go-ipld-node"
cid
"gx/ipfs/QmXfiyr2RWEXpVDdaYnD2HNiBk6UBddsvEP4RPfXb6nGqY/go-cid"
ipldcbor
"gx/ipfs/QmY
RzW9YDHVNCDbfFzbS7TEXAG1swE1yjq1basZ5WnJYH4
/go-ipld-cbor"
ipldcbor
"gx/ipfs/QmY
7L2aEa1rHjkSSbXJB8oC7825JTpUUvDygmM2JPQeqhr
/go-ipld-cbor"
)
var
log
=
logging
.
Logger
(
"merkledag"
)
...
...
@@ -108,10 +108,6 @@ func decodeBlock(b blocks.Block) (node.Node, error) {
return
NewRawNode
(
b
.
RawData
()),
nil
case
cid
.
CBOR
:
return
ipldcbor
.
Decode
(
b
.
RawData
())
/*
case cid.Bitcoin:
return ipldbtc.DecodeBlock(b.RawData())
*/
default
:
return
nil
,
fmt
.
Errorf
(
"unrecognized object type: %s"
,
c
.
Type
())
}
...
...
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