beacon/blsync: fixed linter warning

This commit is contained in:
Zsolt Felfoldi 2024-04-05 11:59:26 +02:00
parent 9de80ca574
commit fdfffbb3b2

View file

@ -135,7 +135,7 @@ func (s *beaconBlockSync) updateEventFeed() {
case he < fe:
return
case he == fe+1:
parent, ok := s.recentBlocks.Get(head.Header.ParentRoot)
parent, ok := s.recentBlocks.Get(head.Header.ParentRoot)
if !ok || parent.Slot()/params.EpochLength == fe {
return // head is at first slot of next epoch, wait for finality update
//TODO trt to fetch finality update directly if subscription does not deliver