await validator duties (#1626)

Validator duties proceed slot-by-slot - we should not start a new
validator duty iteration before the previous one is gone or we might run
into consistency and voting issues
This commit is contained in:
Jacek Sieka 2020-09-11 11:50:00 +02:00 committed by Mamy Ratsimbazafy
parent 04b49cae35
commit 1d3e2935f2
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ proc onSlotStart(node: BeaconNode, lastSlot, scheduledSlot: Slot) {.gcsafe, asyn
beacon_head_slot.set slot.int64 beacon_head_slot.set slot.int64
# Time passes in here.. # Time passes in here..
asyncCheck node.handleValidatorDuties(lastSlot, slot) await node.handleValidatorDuties(lastSlot, slot)
let let
nextSlotStart = saturate(node.beaconClock.fromNow(nextSlot)) nextSlotStart = saturate(node.beaconClock.fromNow(nextSlot))