mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-03 13:33:13 +00:00
merging
This commit is contained in:
parent
221351d03b
commit
51007b5999
@ -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())
|
||||
Loading…
x
Reference in New Issue
Block a user