Partially revert #4477 (#4550)

* Partially revert #4477
This commit is contained in:
Preston Van Loon 2020-01-14 16:29:02 -08:00 committed by prylabs-bulldozer[bot]
parent d8d9f4482f
commit d0793f00c5

View File

@ -115,11 +115,12 @@ func (s *Service) Start() {
return return
} }
s.waitForMinimumPeers() s.waitForMinimumPeers()
if err := s.roundRobinSync(genesis); err == nil { if err := s.roundRobinSync(genesis); err != nil {
panic(err)
}
log.Infof("Synced up to slot %d", s.chain.HeadSlot()) log.Infof("Synced up to slot %d", s.chain.HeadSlot())
s.synced = true s.synced = true
} }
}
// Stop initial sync. // Stop initial sync.
func (s *Service) Stop() error { func (s *Service) Stop() error {