js-libp2p-gossipsub icon indicating copy to clipboard operation
js-libp2p-gossipsub copied to clipboard

Allow to publish same message to multiple topics

Open dapplion opened this issue 3 years ago • 1 comments

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

dapplion avatar Jun 09 '22 12:06 dapplion

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.

stale[bot] avatar Aug 13 '22 14:08 stale[bot]