Signature of async publish(topic: TopicStr, data: Uint8Array) could be changed to topics: TopicStr[] to publish to multiple topics. Or add an option to disable checking for duplicate messages
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Ethereum beacon chain requires to publish the same SyncCommitteeSignature to multiple topics on small networks.
Currently gossipsub prevents doing that by throwing
PublishError.Duplicate
https://github.com/ChainSafe/js-libp2p-gossipsub/blob/17c25a1b4af1446615c42bdb2ed2f208b3f6a5ad/src/index.ts#L1858
Signature of
async publish(topic: TopicStr, data: Uint8Array)
could be changed totopics: TopicStr[]
to publish to multiple topics. Or add an option to disable checking for duplicate messages