diff --git a/beacon-chain/p2p/discovery.go b/beacon-chain/p2p/discovery.go index 3e1d7547e9..a58d51ac40 100644 --- a/beacon-chain/p2p/discovery.go +++ b/beacon-chain/p2p/discovery.go @@ -614,6 +614,7 @@ func (s *Service) createLocalNode( custodyGroupCount, err = s.CustodyGroupCount() if errors.Is(err, errNoCustodyInfo) { log.WithField("delay", delay).Debug("No custody info available yet, retrying later") + time.Sleep(delay) continue } diff --git a/changelog/manu-wait.md b/changelog/manu-wait.md new file mode 100644 index 0000000000..cc3ea015ac --- /dev/null +++ b/changelog/manu-wait.md @@ -0,0 +1,2 @@ +### Fixed +- `createLocalNode`: Wait before retrying to retrieve the custody group count if not present.