mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
* Revert "Replace a Few IntFlags with Uint64Flags (#9959)"
This reverts commit 790bf03123.
* fix
* fix
This commit is contained in:
@@ -163,13 +163,13 @@ func (s *Service) Resync() error {
|
||||
}
|
||||
|
||||
func (s *Service) waitForMinimumPeers() {
|
||||
required := uint64(params.BeaconConfig().MaxPeersToSync)
|
||||
required := params.BeaconConfig().MaxPeersToSync
|
||||
if flags.Get().MinimumSyncPeers < required {
|
||||
required = flags.Get().MinimumSyncPeers
|
||||
}
|
||||
for {
|
||||
_, peers := s.cfg.P2P.Peers().BestNonFinalized(flags.Get().MinimumSyncPeers, s.cfg.Chain.FinalizedCheckpt().Epoch)
|
||||
if uint64(len(peers)) >= required {
|
||||
if len(peers) >= required {
|
||||
break
|
||||
}
|
||||
log.WithFields(logrus.Fields{
|
||||
|
||||
Reference in New Issue
Block a user