-
Notifications
You must be signed in to change notification settings - Fork 79
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/validatorapi: improve error #1586
Conversation
Codecov ReportBase: 53.84% // Head: 54.25% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1586 +/- ##
==========================================
+ Coverage 53.84% 54.25% +0.41%
==========================================
Files 157 157
Lines 19880 19934 +54
==========================================
+ Hits 10705 10816 +111
+ Misses 7729 7664 -65
- Partials 1446 1454 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
core/validatorapi/validatorapi.go
Outdated
@@ -56,7 +56,7 @@ func NewComponentInsecure(_ *testing.T, eth2Cl eth2wrap.Client, shareIdx int) (* | |||
|
|||
// NewComponent returns a new instance of the validator API core workflow component. | |||
func NewComponent(eth2Cl eth2wrap.Client, pubShareByKey map[*bls_sig.PublicKey]*bls_sig.PublicKey, |
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.
you are passing in the same data pubShareByKey
twice but in different formats
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.
That's right. Maybe we can replace pubShareByKey
with allPubSharesByKey
? Since we can calculate relevant pubkey mappings from the latter
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.
yeah, lets try that
babb028
to
b69ae73
Compare
Improves error message when when VC key share index doesn't match charon index.
category: feature
ticket: #947