js-waku
js-waku copied to clipboard
bug: ApplicationInfo to PubsubTopic doesn't take clusterId into consideration
This is a bug report
Problem
shardInfoToPubsubTopics and ensureShardingConfigured doesn't take clusterId
into consideration when resolving the PubsubTopic
for ApplicationInfo
IMO this needs to work because ApplicationInfo
also contains clusterId
and I expect the PubsubTopic
to match it
Proposed Solutions
clusterId
needs to be passed to contentTopicToPubsubTopic
in those 2 functions
related to https://github.com/waku-org/nwaku/issues/2502
This was fixed on nwanku side here
@fbarbu15 I'm not sure I fully understand this issue. clusterId
is indeed taken into account with ApplicationInfo
.
What am I missing?
https://github.com/waku-org/js-waku/blob/4db508b962736426f4897995a2b525c82fe0ba37/packages/utils/src/common/sharding.ts#L63-L70
cc @waku-org/js-waku-developers
Sorry, totally forgot about this issue I've applied this fix when I worked on js-waku sharding tests If it's not correct please feel free to revert/fix it
Closing according to the above comment