-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/bcast: implementation for builder registration #881
core/bcast: implementation for builder registration #881
Conversation
aggData := core.VersionedSignedValidatorRegistration{VersionedSignedValidatorRegistration: registration} | ||
|
||
mock.SubmitValidatorRegistrationsFunc = func(ctx context.Context, registrations []*eth2api.VersionedSignedValidatorRegistration) error { | ||
require.Equal(t, aggData.VersionedSignedValidatorRegistration, *registrations[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this bcast is submitting 1 validator registration so we compare registrations[0]
should we be constructing an array with mutliple registrations and checking that array is equal to the registrations (array) in the mocksSubmitValidatorRegistrationsFunc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do that or just check the length is 1
core/bcast/bcast.go
Outdated
case core.DutyBuilderRegistration: | ||
registration, ok := aggData.(core.VersionedSignedValidatorRegistration) | ||
if !ok { | ||
return errors.New("invalid exit") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"invalid registration"
aggData := core.VersionedSignedValidatorRegistration{VersionedSignedValidatorRegistration: registration} | ||
|
||
mock.SubmitValidatorRegistrationsFunc = func(ctx context.Context, registrations []*eth2api.VersionedSignedValidatorRegistration) error { | ||
require.Equal(t, aggData.VersionedSignedValidatorRegistration, *registrations[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do that or just check the length is 1
1507e63
to
13df4a8
Compare
Codecov Report
@@ Coverage Diff @@
## main #881 +/- ##
==========================================
- Coverage 54.47% 54.45% -0.03%
==========================================
Files 114 114
Lines 12324 12336 +12
==========================================
+ Hits 6714 6718 +4
- Misses 4637 4643 +6
- Partials 973 975 +2
Continue to review full report at Codecov.
|
category: feature
ticket: #849