From 8d1b0834db6cdb289ff0e04e30525c1ce3e48391 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Mon, 29 Apr 2024 18:53:49 +0530 Subject: [PATCH] fix: handle named sharding in enr (#2647) --- waku/factory/internal_config.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waku/factory/internal_config.nim b/waku/factory/internal_config.nim index 877a608ce0..973e396ccd 100644 --- a/waku/factory/internal_config.nim +++ b/waku/factory/internal_config.nim @@ -36,6 +36,8 @@ proc enrConfiguration*( let shardsRes = topicsToRelayShards(conf.pubsubTopics) if shardsRes.isOk() and shardsRes.get().isSome(): shardsLocal = shardsRes.get().get().shardIds + elif not shardsRes.get().isNone(): + info "no pubsub topics specified or pubsubtopic is of type Named sharding " else: error "failed to parse pubsub topic, please format according to static shard specification", error = shardsRes.error