From 1d3e2935f2269cca5a5611ecd2771ddd424e3adc Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 11 Sep 2020 11:50:00 +0200 Subject: [PATCH] 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 --- beacon_chain/beacon_node.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/beacon_node.nim b/beacon_chain/beacon_node.nim index 83d75d733..d755f7589 100644 --- a/beacon_chain/beacon_node.nim +++ b/beacon_chain/beacon_node.nim @@ -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))