Skip to content
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

Merged
merged 3 commits into from
Jan 6, 2023
Merged

Conversation

xenowits
Copy link
Contributor

@xenowits xenowits commented Jan 4, 2023

Improves error message when when VC key share index doesn't match charon index.

category: feature
ticket: #947

@xenowits xenowits self-assigned this Jan 4, 2023
@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Base: 53.84% // Head: 54.25% // Increases project coverage by +0.41% 🎉

Coverage data is based on head (6bf0324) compared to base (3ad9b9d).
Patch coverage: 100.00% of modified lines in pull request are covered.

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     
Impacted Files Coverage Δ
app/app.go 64.21% <100.00%> (-0.30%) ⬇️
core/fetcher/fetcher.go 62.08% <100.00%> (ø)
core/validatorapi/validatorapi.go 59.06% <100.00%> (+1.11%) ⬆️
app/vmock.go 73.05% <0.00%> (-4.67%) ⬇️
core/scheduler/scheduler.go 72.79% <0.00%> (+0.26%) ⬆️
app/eth2wrap/synthproposer.go 66.56% <0.00%> (+0.31%) ⬆️
core/dutydb/memory.go 73.56% <0.00%> (+4.96%) ⬆️
core/qbft/qbft.go 83.82% <0.00%> (+10.71%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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,
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, lets try that

@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 6, 2023
@obol-bulldozer obol-bulldozer bot merged commit 3c1ce29 into main Jan 6, 2023
@obol-bulldozer obol-bulldozer bot deleted the xenowits/mismatch-keyshares branch January 6, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants