always wait for 2/3 into slot for aggregate attestations (#2158)
This commit is contained in:
parent
81c25ca4cd
commit
72d00e33b8
|
@ -23,6 +23,7 @@ import
|
||||||
conf, time, validator_pool,
|
conf, time, validator_pool,
|
||||||
attestation_pool, exit_pool, block_pools/[spec_cache, chain_dag, clearance],
|
attestation_pool, exit_pool, block_pools/[spec_cache, chain_dag, clearance],
|
||||||
eth2_network, keystore_management, beacon_node_common, beacon_node_types,
|
eth2_network, keystore_management, beacon_node_common, beacon_node_types,
|
||||||
|
nimbus_binary_common,
|
||||||
eth1_monitor, version, ssz/merkleization,
|
eth1_monitor, version, ssz/merkleization,
|
||||||
attestation_aggregation, sync_manager, sszdump,
|
attestation_aggregation, sync_manager, sszdump,
|
||||||
validator_slashing_protection
|
validator_slashing_protection
|
||||||
|
@ -679,8 +680,8 @@ proc handleValidatorDuties*(node: BeaconNode, lastSlot, slot: Slot) {.async.} =
|
||||||
# through the slot-that is, SECONDS_PER_SLOT * 2 / 3 seconds after the start
|
# through the slot-that is, SECONDS_PER_SLOT * 2 / 3 seconds after the start
|
||||||
# of slot.
|
# of slot.
|
||||||
if slot > 2:
|
if slot > 2:
|
||||||
sleepToSlotOffsetWithHeadUpdate(
|
discard await node.beaconClock.sleepToSlotOffset(
|
||||||
seconds(int64(SECONDS_PER_SLOT * 2) div 3),
|
seconds(int64(SECONDS_PER_SLOT * 2) div 3), slot,
|
||||||
"Waiting to aggregate attestations")
|
"Waiting to aggregate attestations")
|
||||||
|
|
||||||
let aggregationHead = get_ancestor(head, slot)
|
let aggregationHead = get_ancestor(head, slot)
|
||||||
|
|
Loading…
Reference in New Issue