Ethereum beacon chain requires to publish the same SyncCommitteeSignature to multiple topics on small networks.
Currently gossipsub prevents doing that by throwing PublishError.Duplicate
|
throw Error('PublishError.Duplicate') |
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