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
Batch Block Roots Requesting #7027
Conversation
8ea515b
to
08f10f7
Compare
Codecov Report
@@ Coverage Diff @@
## master #7027 +/- ##
==========================================
+ Coverage 60.07% 62.21% +2.14%
==========================================
Files 323 401 +78
Lines 27422 31398 +3976
==========================================
+ Hits 16473 19535 +3062
- Misses 8733 9093 +360
- Partials 2216 2770 +554 |
@@ -49,6 +49,19 @@ func (s *Service) dedupBlocksAndRoots(blks []*ethpb.SignedBeaconBlock, roots [][ | |||
return newBlks, newRoots, nil | |||
} | |||
|
|||
func (s *Service) dedupRoots(roots [][32]byte) [][32]byte { |
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.
Is this tested? I think we can add a duplicated root in TestService_BatchRootRequest
to cover this function?
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.
great idea, will add that in
… into batchRootReq
What type of PR is this?
Feature Change
What does this PR do? Why is it needed?
of peers.
randomly trying out with any peer.
Which issues(s) does this PR fix?
N.A
Other notes for review