ChainSafe / js-libp2p-gossipsub

TypeScript implementation of Gossipsub
Apache License 2.0
151 stars 43 forks source link

Allow to publish same message to multiple topics #272

Open dapplion opened 2 years ago

dapplion commented 2 years ago

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 to topics: TopicStr[] to publish to multiple topics. Or add an option to disable checking for duplicate messages

stale[bot] commented 2 years ago

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.