Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 22, 2024
1 parent 72a33f0 commit 751dcb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion waku/waku_rln_relay/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const
MembershipFee* = 1000000000000000.u256
# the current implementation of the rln lib supports a circuit for Merkle tree with depth 20
MerkleTreeDepth* = 20
EthClient* = "ws://127.0.0.1:8540"
EthClient* = "http://127.0.0.1:8540"

const
# the size of poseidon hash output in bits
Expand Down
6 changes: 4 additions & 2 deletions waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,13 @@ proc runInInterval(g: OnchainGroupManager, cb: proc, interval: Duration): void =
g.blockFetchingActive = false

proc runIntervalLoop() {.async, gcsafe.} =
while not(g.blockFetchingActive):
g.blockFetchingActive = true

while g.blockFetchingActive:
var retCb: bool
await sleepAsync(interval)
retryWrapper(retCb, RetryStrategy.new(), "Failed to run the interval loop"):
await cb()
await sleepAsync(interval)

asyncSpawn runIntervalLoop()

Expand Down

0 comments on commit 751dcb6

Please sign in to comment.