Skip to content

Commit

Permalink
feat: add service capabilities and dependencies definition (#497)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
achingbrain authored Jun 20, 2024
1 parent bc3906f commit 9ffc2a2
Show file tree
Hide file tree
Showing 3 changed files with 9,036 additions and 6,698 deletions.
Loading

0 comments on commit 9ffc2a2

Please sign in to comment.