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

feat: support delegated value store in content-routing module #1008

Closed
wants to merge 1 commit into from

Conversation

yusefnapora
Copy link
Contributor

@yusefnapora yusefnapora commented Oct 7, 2021

This adds support for delegated put / get operations in the content-routing module instead of always using the DHT. It depends on some in-progress PRs, so CI is currently failing.

Dependencies:

To run the tests locally, you can checkout the PR branch of js-libp2p-interfaces and npm link it into js-libp2p. For now, I'm depending on a commit hash for the delegated-content-routing PR, but that doesn't work for libp2p-interfaces since it's a multi-module repo.

This adds a new entry to the config modules object called valueStorage which can contain ValueStore implementations. Currently the only non-DHT implementation is in the delegated-content-routing PR above.

I don't think the config change is technically a breaking API change since it's additive - if you don't add the new valueStorage module in your config you just won't get delegated put/get operations, but the DHT will still work if you've enabled it.

@@ -149,7 +148,7 @@
"it-pushable": "^1.4.0",
"libp2p": ".",
"libp2p-bootstrap": "^0.13.0",
"libp2p-delegated-content-routing": "^0.11.0",
"libp2p-delegated-content-routing": "git+ssh://git@github.com/libp2p/js-libp2p-delegated-content-routing#362cd00988e717f6fc49b0a1f2fa7bbaabbfcc53",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be updated once the dependent PR is merged

@BigLep BigLep added this to In Review in Maintenance Priorities - JS via automation Oct 8, 2021
@lidel lidel self-assigned this Oct 8, 2021
@BigLep BigLep marked this pull request as draft January 28, 2022 15:54
@BigLep
Copy link
Contributor

BigLep commented Jan 28, 2022

Moving this to draft until we're able to give a concerted effort on IPNS improvements as part of ipfs/js-ipfs#2921

@achingbrain
Copy link
Member

Closing as this can be implemented by specifying additional content routers.

@achingbrain achingbrain deleted the feat/content-routing-put-get branch May 14, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🎉Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants