make reconstruct and broadcast right after performing validator duties

This commit is contained in:
Agnish Ghosh 2024-08-19 21:33:40 +05:30
parent 0034fea1d6
commit f142dcd36f
1 changed files with 1 additions and 2 deletions

View File

@ -1563,7 +1563,6 @@ proc reconstructAndSendDataColumns*(node: BeaconNode) {.async.} =
proc onSlotEnd(node: BeaconNode, slot: Slot) {.async.} = proc onSlotEnd(node: BeaconNode, slot: Slot) {.async.} =
# Things we do when slot processing has ended and we're about to wait for the # Things we do when slot processing has ended and we're about to wait for the
# next slot # next slot
await node.reconstructAndSendDataColumns()
# By waiting until close before slot end, ensure that preparation for next # By waiting until close before slot end, ensure that preparation for next
# slot does not interfere with propagation of messages and with VC duties. # slot does not interfere with propagation of messages and with VC duties.
@ -1830,7 +1829,7 @@ proc onSlotStart(node: BeaconNode, wallTime: BeaconTime,
node.consensusManager[].updateHead(wallSlot) node.consensusManager[].updateHead(wallSlot)
await node.handleValidatorDuties(lastSlot, wallSlot) await node.handleValidatorDuties(lastSlot, wallSlot)
await node.reconstructAndSendDataColumns()
await onSlotEnd(node, wallSlot) await onSlotEnd(node, wallSlot)
# https://github.com/ethereum/builder-specs/blob/v0.4.0/specs/bellatrix/validator.md#registration-dissemination # https://github.com/ethereum/builder-specs/blob/v0.4.0/specs/bellatrix/validator.md#registration-dissemination