Skip to content

Commit

Permalink
fix: widen the type vs narrowing
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed May 8, 2024
1 parent acacb9d commit 442ca43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 442ca43

Please sign in to comment.