feat: update test

This commit is contained in:
darshankabariya 2025-03-21 14:17:33 +05:30
parent 3f5f07eae6
commit 86180b2db4

View File

@ -498,3 +498,13 @@ method init*(g: OnchainGroupManager): Future[GroupManagerResult[void]] {.async.}
g.initialized = true
return ok()
method stop*(g: OnchainGroupManager): Future[void] {.async, gcsafe.} =
if g.ethRpc.isSome():
g.ethRpc.get().ondisconnect = nil
await g.ethRpc.get().close()
let flushed = g.rlnInstance.flush()
if not flushed:
error "failed to flush to the tree db"
g.initialized = false