mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-08-27 00:21:08 +00:00
chore: fixes for nwaku pr3350 (#111)
* chore: fixes for nwaku pr3350 * fix * fix
This commit is contained in:
+11
-3
@@ -62,7 +62,7 @@ def multiaddr2id(multiaddr):
|
||||
|
||||
|
||||
def resolve_sharding_flags(kwargs):
|
||||
if "pubsub_topic" in kwargs:
|
||||
if "pubsub_topic" in kwargs and kwargs["pubsub_topic"]:
|
||||
pubsub_topic = kwargs["pubsub_topic"]
|
||||
if not "cluster_id" in kwargs:
|
||||
try:
|
||||
@@ -152,8 +152,16 @@ class WakuNode:
|
||||
|
||||
default_args.update(sanitize_docker_flags(kwargs))
|
||||
|
||||
if self.is_gowaku() and default_args.get("relay") == "false":
|
||||
default_args["pubsub-topic"] = VALID_PUBSUB_TOPICS[1]
|
||||
if self.is_gowaku():
|
||||
if default_args.get("relay") == "false" and "pubsub-topic" not in default_args:
|
||||
logger.info(f"Adding pubsub-topic={VALID_PUBSUB_TOPICS[1]} to default args for go-waku")
|
||||
default_args["pubsub-topic"] = VALID_PUBSUB_TOPICS[1]
|
||||
if "shard" in default_args:
|
||||
del default_args["shard"]
|
||||
|
||||
if self.is_nwaku() and "pubsub-topic" in default_args:
|
||||
logger.debug("Removing pubsub-topic from nwaku args")
|
||||
del default_args["pubsub-topic"]
|
||||
|
||||
rln_args, rln_creds_set, keystore_path = self.parse_rln_credentials(default_args, False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user