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/fetcher: support aggregate attestation not found #1184

Merged
merged 3 commits into from
Sep 28, 2022

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Sep 27, 2022

Fixes panic in fetcher when AggregateAttestation isn't found and go-eth2-client returns nil,nil. This can happen when using infura and the SubmitBeaconCommitteeSubscription was processed by a different node. Just retry in that case.

Also use proper timeout for eth2exp calls (2s is too short).

category: bug
ticket: none

@codecov
Copy link

codecov bot commented Sep 27, 2022

Codecov Report

Base: 53.09% // Head: 53.38% // Increases project coverage by +0.28% 🎉

Coverage data is based on head (7667dff) compared to base (b568341).
Patch coverage: 38.46% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1184      +/-   ##
==========================================
+ Coverage   53.09%   53.38%   +0.28%     
==========================================
  Files         133      133              
  Lines       15492    15509      +17     
==========================================
+ Hits         8226     8280      +54     
+ Misses       6078     6039      -39     
- Partials     1188     1190       +2     
Impacted Files Coverage Δ
app/eth2wrap/eth2wrap.go 43.03% <0.00%> (ø)
app/eth2wrap/eth2wrap_gen.go 5.69% <ø> (ø)
app/eth2wrap/httpwrap.go 0.00% <0.00%> (ø)
app/eth2wrap/success.go 50.00% <0.00%> (-50.00%) ⬇️
app/retry/retry.go 76.74% <0.00%> (-1.83%) ⬇️
testutil/validatormock/attest.go 59.83% <40.00%> (-0.41%) ⬇️
core/fetcher/fetcher.go 67.44% <75.00%> (+2.56%) ⬆️
app/vmock.go 71.89% <85.71%> (+0.56%) ⬆️
core/leadercast/transport.go 75.14% <0.00%> (-1.19%) ⬇️
core/scheduler/scheduler.go 73.31% <0.00%> (-0.54%) ⬇️
... and 3 more

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.

app/eth2wrap/success.go Outdated Show resolved Hide resolved
@@ -72,9 +76,6 @@ func httpPost(ctx context.Context, base string, endpoint string, body io.Reader)
return nil, errors.Wrap(err, "invalid endpoint")
}

ctx, cancel := context.WithTimeout(ctx, time.Second*2) // TODO(dhruv): use actual configured timeout.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

did this

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 28, 2022
@obol-bulldozer obol-bulldozer bot merged commit 7b9504d into main Sep 28, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/aggfetcher branch September 28, 2022 05:09
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.

2 participants