diff --git a/src/index.ts b/src/index.ts index d37f22f6..e666c0cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -110,7 +110,7 @@ export interface GossipsubOpts extends GossipsubOptsSpec, PubSubInit { /** Do not throw `InsufficientPeers` error if publishing to zero peers */ allowPublishToZeroPeers: boolean /** Do not throw `PublishError.Duplicate` if publishing duplicate messages */ - allowPublishDuplicates: boolean + ignoreDuplicateMessages: boolean /** For a single stream, await processing each RPC before processing the next */ awaitRpcHandler: boolean /** For a single RPC, await processing each message before processing the next */ @@ -2016,11 +2016,14 @@ export class GossipSub extends EventEmitter implements PubSub