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: add service capabilities and dependencies definition #497

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

achingbrain
Copy link
Collaborator

The latest libp2p release allows services to declare their capabilities (what they provide to the node) and their dependencies (the capabilities they require other services to provide for the config to be "valid").

Adds the serviceCapabilities symbol property that says Gossipsub provides the @libp2p/pubsub capability and also the serviceDependencies symbol property that says it depends on some service providing the @libp2p/identify capability - this is required because Gossipsub uses network topologies to discover peers which requires the Identify protocol.

The latest libp2p release allows services to declare their
capabilities (what they provide to the node) and their
dependencies (the capabilities they require other services to
provide for the config to be "valid").

Adds the `serviceCapabilities` symbol property that says Gossipsub
provides the `@libp2p/pubsub` capability and also that it depends
on another service providing the `@libp2p/identify` capability -
this is required because Gossipsub uses network topologies to
discover peers which requires the Identify protocol.
@achingbrain achingbrain requested a review from a team as a code owner June 19, 2024 17:24
@wemeetagain wemeetagain merged commit 9ffc2a2 into master Jun 20, 2024
9 checks passed
@wemeetagain wemeetagain deleted the feat/add-service-capabilities branch June 20, 2024 13:38
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.

2 participants