Fix incorrect polling for sync committee duties.

This commit is contained in:
cheatfate 2023-05-10 09:34:33 +03:00
parent 77657974bb
commit 4656b427c4
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95

View File

@ -960,7 +960,7 @@ proc syncCommitteeDutiesLoop(service: DutiesServiceRef) {.async.} =
not(service.pollingSyncDutiesTask.finished()): not(service.pollingSyncDutiesTask.finished()):
await cancelAndWait(service.pollingSyncDutiesTask) await cancelAndWait(service.pollingSyncDutiesTask)
# Spawning new attestation duties task. # Spawning new attestation duties task.
service.pollingSyncDutiesTask = service.pollForAttesterDuties() service.pollingSyncDutiesTask = service.pollForSyncCommitteeDuties()
template checkAndRestart(serviceLoop: DutiesServiceLoop, template checkAndRestart(serviceLoop: DutiesServiceLoop,
future: Future[void], body: untyped): untyped = future: Future[void], body: untyped): untyped =