Update beacon/blsync/block_sync.go

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
Felföldi Zsolt 2024-04-08 08:32:36 +02:00 committed by Zsolt Felfoldi
parent fdfffbb3b2
commit 22e075ff80

View file

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