Skip to content
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

Merged
merged 1 commit into from
Oct 26, 2014
Merged

convert DAGService to an interface #191

merged 1 commit into from
Oct 26, 2014

Conversation

ehmry
Copy link
Contributor

@ehmry ehmry commented Oct 20, 2014

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.

@whyrusleeping
Copy link
Member

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.

@jbenet
Copy link
Member

jbenet commented Oct 22, 2014

@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)
Copy link
Member

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...

@whyrusleeping
Copy link
Member

made a couple inconsequential comments, but really, LGTM

@jbenet
Copy link
Member

jbenet commented Oct 23, 2014

I think this needs rebasing now (build errored), but ready to merge whenever.

@jbenet
Copy link
Member

jbenet commented Oct 25, 2014

@ehmry I can do the rebasing for you and merge manually, just lmk.

@ehmry
Copy link
Contributor Author

ehmry commented Oct 26, 2014

Ok, ready to go.

jbenet added a commit that referenced this pull request Oct 26, 2014
convert DAGService to an interface
@jbenet jbenet merged commit 08edaf8 into ipfs:master Oct 26, 2014
@jbenet
Copy link
Member

jbenet commented Oct 26, 2014

thanks @ehmry !

@ehmry ehmry deleted the dagservice-interface branch October 26, 2014 05:29
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants