Do not return early if validator update fails.

This commit is contained in:
Jim McDonald 2020-09-29 22:41:30 +01:00
parent eeab9d48f7
commit b279c097df
No known key found for this signature in database
GPG Key ID: 89CEB61B2AD2A5E7
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
Development:
- if Vouch fails to obtain an updated list of validators continue with what it has
- block proposal calculation counts slashed indices rather than slashing entries
0.6.0:
- initial release

View File

@ -220,7 +220,7 @@ func (s *Service) epochTicker(ctx context.Context, data interface{}) {
err := s.validatingAccountsProvider.(accountmanager.AccountsUpdater).UpdateAccountsState(ctx)
if err != nil {
log.Warn().Err(err).Msg("Failed to update account state")
return
// Don't return even though we have an error here, as we can continue with the accounts we have from the previous run.
}
accounts, err := s.validatingAccountsProvider.Accounts(ctx)
if err != nil {
@ -244,7 +244,7 @@ func (s *Service) epochTicker(ctx context.Context, data interface{}) {
// Update beacon committee subscriptions for the next epoch.
subscriptionInfo, err := s.beaconCommitteeSubscriber.Subscribe(ctx, currentEpoch+1, accounts)
if err != nil {
log.Warn().Err(err).Msg("Failed to subscribe to beacom committees")
log.Warn().Err(err).Msg("Failed to subscribe to beacon committees")
return
}
s.subscriptionInfosMutex.Lock()