Skip to content

Commit

Permalink
Allow submission of proposal preparations and validator registrations…
Browse files Browse the repository at this point in the history
… before client is synced.
  • Loading branch information
mcdee committed Mar 5, 2024
1 parent d79b541 commit b62ba85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http/submitproposalpreparation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion http/submitvalidatorregistrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b62ba85

Please sign in to comment.