This commit is contained in:
stubbsta 2025-04-02 10:04:35 +02:00
parent 221351d03b
commit 51007b5999

View File

@ -483,18 +483,6 @@ proc mount(
# Start epoch monitoring in the background
wakuRlnRelay.epochMonitorFuture = monitorEpochs(wakuRlnRelay)
# Start tracking root changes after successful initialization and registration
debug "~~~~~~~~~~~~~ Starting root tracking ~~~~~~~~~~~~~~~~"
debug "~~~~~~~~~~~~~ groupManager ~~~~~~~~~~~~~~~~"
await sleepAsync(5 * 60 * 1000)
if conf.rlnRelayDynamic:
debug "~~~~~~~~~~~~~ groupManager is dynamic ~~~~~~~~~~~~~~~~"
let onchainGroupManager = cast[OnchainGroupManager](groupManager)
asyncSpawn onchainGroupManager.trackRootChanges()
await sleepAsync(5 * 60 * 1000)
return ok(wakuRlnRelay)
proc isReady*(rlnPeer: WakuRLNRelay): Future[bool] {.async: (raises: [Exception]).} =
@ -522,4 +510,4 @@ proc new*(
try:
return await mount(conf, registrationHandler)
except CatchableError:
return err("could not mount the rln-relay protocol: " & getCurrentExceptionMsg())
return err("could not mount the rln-relay protocol: " & getCurrentExceptionMsg())