mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-20 19:40:52 +00:00
Fix incorrect polling for sync committee duties.
This commit is contained in:
parent
77657974bb
commit
4656b427c4
@ -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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user