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

app/eth2wrap: implement parallel multi beacon client #1012

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

corverroos
Copy link
Contributor

Implements a parallel eth2 client to improve beacon node latency by using the "fastest" response.

category: feature
ticket: #960

@@ -88,3 +88,13 @@ func (s structured) Stack() zap.Field {
func (s structured) Unwrap() error {
return s.err
}

// Is returns true if err is equaled to this structured error.
func (s structured) Is(err error) bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

found this issue with our error package, so fixed it

@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #1012 (d841132) into main (9b1b974) will decrease coverage by 1.38%.
The diff coverage is 22.22%.

@@            Coverage Diff             @@
##             main    #1012      +/-   ##
==========================================
- Coverage   54.16%   52.78%   -1.39%     
==========================================
  Files         118      123       +5     
  Lines       13215    13661     +446     
==========================================
+ Hits         7158     7211      +53     
- Misses       5030     5419     +389     
- Partials     1027     1031       +4     
Impacted Files Coverage Δ
app/app.go 58.26% <0.00%> (ø)
app/eth2wrap/eth2wrap_gen.go 6.36% <7.89%> (ø)
app/eth2wrap/eth2wrap.go 55.22% <51.78%> (ø)
app/errors/errors.go 89.47% <100.00%> (ø)
app/errors/go113.go 50.00% <100.00%> (ø)
app/eth2wrap/success.go 100.00% <100.00%> (ø)
testutil/beaconmock/beaconmock.go 63.52% <100.00%> (+0.87%) ⬆️
testutil/beaconmock/options.go 43.20% <100.00%> (+0.53%) ⬆️
core/qbft/qbft.go 71.67% <0.00%> (-10.31%) ⬇️
... 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.

}

func (m multi) Address() string {
// TODO(corver): return "best" address.
Copy link
Contributor

Choose a reason for hiding this comment

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

i assume this will come in subsequent PRs or it will be taken as part of separate issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can do as separate issue I think

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 23, 2022
@obol-bulldozer obol-bulldozer bot merged commit e93713e into main Aug 23, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/multiwrap branch August 23, 2022 07:15
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