remove obsolete curSlot variable (#5786)

#5773 removed catching up on validator duties after lag. The `curSlot`
variable that was used originally to track catch-up progress no longer
has a use and is also no longer properly updated. Remove it.
This commit is contained in:
Etan Kissling 2024-01-19 04:21:38 +01:00 committed by GitHub
parent 545fb17649
commit d59632acd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1927,8 +1927,6 @@ proc handleValidatorDuties*(node: BeaconNode, lastSlot, slot: Slot) {.async.} =
withState(node.dag.headState):
node.updateValidators(forkyState.data.validators.asSeq())
var curSlot = lastSlot + 1
let newHead = await handleProposal(node, head, slot)
head = newHead