Skip to content

Commit b51aec6

Browse files
authored
Init sync: minor fixes (#8060)
* fixes typo * simplify code
1 parent b4437e6 commit b51aec6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

beacon-chain/sync/initial-sync/blocks_queue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ func TestBlocksQueue_stuckWhenHeadIsSetToOrphanedBlock(t *testing.T) {
13131313

13141314
select {
13151315
case <-time.After(3 * time.Second):
1316-
t.Fatal("test takes to long to complete")
1316+
t.Fatal("test takes too long to complete")
13171317
case data := <-queue.fetchedData:
13181318
for _, blk := range data.blocks {
13191319
blkRoot, err := blk.Block.HashTreeRoot()

beacon-chain/sync/initial-sync/round_robin.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ func (s *Service) roundRobinSync(genesis time.Time) error {
5656

5757
// Step 2 - sync to head from majority of peers (from no less than MinimumSyncPeers*2 peers)
5858
// having the same world view on non-finalized epoch.
59-
if err := s.syncToNonFinalizedEpoch(ctx, genesis); err != nil {
60-
return err
61-
}
62-
63-
return nil
59+
return s.syncToNonFinalizedEpoch(ctx, genesis)
6460
}
6561

6662
// syncToFinalizedEpoch sync from head to best known finalized epoch.

0 commit comments

Comments
 (0)