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 GitHub
parent 8a5a261fcd
commit 775683cf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
# Time passes in here..
asyncCheck node.handleValidatorDuties(lastSlot, slot)
await node.handleValidatorDuties(lastSlot, slot)
let
nextSlotStart = saturate(node.beaconClock.fromNow(nextSlot))