-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
Codecov ReportBase: 53.09% // Head: 53.38% // Increases project coverage by
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
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. |
Co-authored-by: Abhishek Kumar <[email protected]>
@@ -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. |
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.
did this
Fixes panic in fetcher when
AggregateAttestation
isn't found and go-eth2-client returnsnil,nil
. This can happen when using infura and theSubmitBeaconCommitteeSubscription
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