diff --git a/beacon_chain/sync/sync_manager.nim b/beacon_chain/sync/sync_manager.nim index 64b0fe8b75..efbe2b334a 100644 --- a/beacon_chain/sync/sync_manager.nim +++ b/beacon_chain/sync/sync_manager.nim @@ -167,9 +167,9 @@ proc getBlocks*[A, B](man: SyncManager[A, B], peer: A, try: let res = if peer.useSyncV2(): - await beaconBlocksByRange_v2(peer, req.slot, req.count, 1) + await beaconBlocksByRange_v2(peer, req.slot, req.count, 1'u64) else: - (await beaconBlocksByRange(peer, req.slot, req.count, 1)).map( + (await beaconBlocksByRange(peer, req.slot, req.count, 1'u64)).map( proc(blcks: seq[phase0.SignedBeaconBlock]): auto = blcks.mapIt(newClone(ForkedSignedBeaconBlock.init(it)))) diff --git a/beacon_chain/sync/sync_queue.nim b/beacon_chain/sync/sync_queue.nim index 108eebd566..473f9fa69c 100644 --- a/beacon_chain/sync/sync_queue.nim +++ b/beacon_chain/sync/sync_queue.nim @@ -7,7 +7,7 @@ {.push raises: [Defect].} -import std/[options, heapqueue, tables, strutils, sequtils, math, algorithm] +import std/[options, heapqueue, tables, strutils, sequtils, math] import stew/[results, base10], chronos, chronicles import ../spec/datatypes/[base, phase0, altair], @@ -134,8 +134,8 @@ proc checkResponse*[T](req: SyncRequest[T], inc(dindex) else: return false - slot = slot + 1 - rindex = rindex + 1'u64 + slot += 1'u64 + rindex += 1'u64 if dindex == len(data): return true