mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
properly pass userMessageLimit to OnchainGroupManager (#3407)
This commit is contained in:
parent
2926542fcd
commit
e321774e91
@ -414,9 +414,12 @@ proc generateRlnValidator*(
|
||||
proc monitorEpochs(wakuRlnRelay: WakuRLNRelay) {.async.} =
|
||||
while true:
|
||||
try:
|
||||
waku_rln_remaining_proofs_per_epoch.set(
|
||||
wakuRlnRelay.groupManager.userMessageLimit.get().float64
|
||||
)
|
||||
if wakuRlnRelay.groupManager.userMessageLimit.isSome():
|
||||
waku_rln_remaining_proofs_per_epoch.set(
|
||||
wakuRlnRelay.groupManager.userMessageLimit.get().float64
|
||||
)
|
||||
else:
|
||||
error "userMessageLimit is not set in monitorEpochs"
|
||||
except CatchableError:
|
||||
error "Error in epoch monitoring", error = getCurrentExceptionMsg()
|
||||
|
||||
@ -455,6 +458,7 @@ proc mount(
|
||||
(none(string), none(string))
|
||||
|
||||
groupManager = OnchainGroupManager(
|
||||
userMessageLimit: some(conf.userMessageLimit),
|
||||
ethClientUrls: conf.ethClientUrls,
|
||||
ethContractAddress: $conf.ethContractAddress,
|
||||
chainId: conf.chainId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user