Skip to content

Commit

Permalink
fix(rln-relay): waitFor startup, otherwise valid proofs will be marke…
Browse files Browse the repository at this point in the history
…d invalid
  • Loading branch information
rymnc committed Aug 21, 2023
1 parent af95b57 commit 5472776
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions waku/node/waku_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,8 @@ when defined(rln):

if node.wakuRelay.isNil():
raise newException(CatchableError, "WakuRelay protocol is not mounted, cannot mount WakuRlnRelay")
# TODO: check whether the pubsub topic is supported at the relay level
# if rlnConf.rlnRelayPubsubTopic notin node.wakuRelay.defaultPubsubTopics:
# error "The relay protocol does not support the configured pubsub topic for WakuRlnRelay"

let rlnRelayRes = await WakuRlnRelay.new(rlnConf,
let rlnRelayRes = waitFor WakuRlnRelay.new(rlnConf,
registrationHandler)
if rlnRelayRes.isErr():
raise newException(CatchableError, "failed to mount WakuRlnRelay: " & rlnRelayRes.error)
Expand Down

0 comments on commit 5472776

Please sign in to comment.