From b62ba8584ef69f6b264ccd144bf14ecb1e5d83de Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 5 Mar 2024 20:25:07 +0000 Subject: [PATCH] Allow submission of proposal preparations and validator registrations before client is synced. --- http/submitproposalpreparation.go | 2 +- http/submitvalidatorregistrations.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http/submitproposalpreparation.go b/http/submitproposalpreparation.go index d18880ab..af299fa9 100644 --- a/http/submitproposalpreparation.go +++ b/http/submitproposalpreparation.go @@ -25,7 +25,7 @@ import ( // SubmitProposalPreparations provides the beacon node with information required if a proposal for the given validators // shows up in the next epoch. func (s *Service) SubmitProposalPreparations(ctx context.Context, preparations []*apiv1.ProposalPreparation) error { - if err := s.assertIsSynced(ctx); err != nil { + if err := s.assertIsActive(ctx); err != nil { return err } diff --git a/http/submitvalidatorregistrations.go b/http/submitvalidatorregistrations.go index 54c48644..a36aa526 100644 --- a/http/submitvalidatorregistrations.go +++ b/http/submitvalidatorregistrations.go @@ -26,7 +26,7 @@ import ( // SubmitValidatorRegistrations submits a validator registration. func (s *Service) SubmitValidatorRegistrations(ctx context.Context, registrations []*api.VersionedSignedValidatorRegistration) error { - if err := s.assertIsSynced(ctx); err != nil { + if err := s.assertIsActive(ctx); err != nil { return err } if len(registrations) == 0 {