diff --git a/packages/pubsub-floodsub/src/index.ts b/packages/pubsub-floodsub/src/index.ts index eb18207788..99745902df 100644 --- a/packages/pubsub-floodsub/src/index.ts +++ b/packages/pubsub-floodsub/src/index.ts @@ -32,7 +32,7 @@ * ``` */ -import { pubSubSymbol, serviceDependencies } from '@libp2p/interface' +import { pubSubSymbol, serviceCapabilities, serviceDependencies } from '@libp2p/interface' import { PubSubBaseProtocol, type PubSubComponents } from '@libp2p/pubsub' import { toString } from 'uint8arrays/to-string' import { SimpleTimeCache } from './cache.js' @@ -82,6 +82,10 @@ class FloodSub extends PubSubBaseProtocol { readonly [Symbol.toStringTag] = '@libp2p/floodsub' + readonly [serviceCapabilities]: string[] = [ + '@libp2p/pubsub' + ] + readonly [serviceDependencies]: string[] = [ '@libp2p/identify' ]