diff --git a/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim b/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim index c383fdfb3a..25e1a0ca38 100644 --- a/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim +++ b/waku/waku_rln_relay/group_manager/on_chain/group_manager.nim @@ -856,7 +856,7 @@ method isReady*(g: OnchainGroupManager): Future[bool] {.async.} = cast[BlockNumber](await g.ethRpc.get().provider.eth_blockNumber()) # the node is still able to process messages if it is behind the latest block by a factor of the valid roots - if uint(g.latestProcessedBlock) < uint(currentBlock) - uint(g.validRoots.len): + if u256(g.latestProcessedBlock) < u256(currentBlock) - u256(g.validRoots.len): return false return not (await g.isSyncing())