Commit 9a4a2e3b authored by Jeromy's avatar Jeromy

merkledag: change 'Node' to be an interface

Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 1a7caa81
...@@ -14,7 +14,6 @@ import ( ...@@ -14,7 +14,6 @@ import (
var ErrWrongHash = errors.New("data did not match given hash!") var ErrWrongHash = errors.New("data did not match given hash!")
type Block interface { type Block interface {
Multihash() mh.Multihash
RawData() []byte RawData() []byte
Cid() *cid.Cid Cid() *cid.Cid
String() string String() string
......
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