-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert DAGService to an interface #191
Conversation
What i (and @jbenet ) was thinking, was to make the blockservice be RPC backed, that way, a DAGService using an rpc backed blockservice would be also RPC enabled. |
@whyrusleeping want to CR this, as you know DAGWriter/Reader better than I do? |
@@ -157,7 +157,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) { | |||
return nil, err | |||
} | |||
|
|||
dag := &merkledag.DAGService{Blocks: bs} | |||
dag := merkledag.NewDAGService(bs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
been wanting to do this forever...
made a couple inconsequential comments, but really, LGTM |
I think this needs rebasing now (build errored), but ready to merge whenever. |
@ehmry I can do the rebasing for you and merge manually, just lmk. |
Ok, ready to go. |
convert DAGService to an interface
thanks @ehmry ! |
Here is DAGService conversion, leaving the spiltter as-is.
Looking at BlockService, it would makes sense to interface that too, but for me at this point I'd rather have a RPC backed DAGService because its a much more naive way to add objects.
I would perhaps like to run multiple BlockExchange nodes on the same datastore, so that I might publish objects to different networks without exposing the relationship between my different addresses.
There is alot more that goes into that, but its something I've been thinking about.