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

Include Beacon Client Package in Slasher #4835

Merged
merged 6 commits into from Feb 11, 2020
Merged

Include Beacon Client Package in Slasher #4835

merged 6 commits into from Feb 11, 2020

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Feb 11, 2020

Part of #4836


Description

Write why you are making the changes in this pull request

Currently, slasher does a lot of things in single files, instead of having proper separation of concerns between services.

Write a summary of the changes you are making

This PR creates a beaconclient package in slasher that initializes a gRPC connection to a beacon node for listening to streamed blocks and attestations. The service then relays received data via a BlockFeed *event.Feed and AttestationFeed *event.Feed other services in the slasher runtime can subscribe to.

Link anything that would be helpful or relevant to the reviewers

This PR does not hook-up this service to a main slasher runtime. This will be done in a separate PR once all the difference pieces are built.

@rauljordan rauljordan self-assigned this Feb 11, 2020
@rauljordan rauljordan added the Ready For Review A pull request ready for code review label Feb 11, 2020
@rauljordan rauljordan added this to In progress in Slashing via automation Feb 11, 2020
@codecov
Copy link

codecov bot commented Feb 11, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@9ec596b). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master   #4835   +/-   ##
========================================
  Coverage          ?   5.88%           
========================================
  Files             ?       5           
  Lines             ?     306           
  Branches          ?       0           
========================================
  Hits              ?      18           
  Misses            ?     284           
  Partials          ?       4

Slashing automation moved this from In progress to Reviewer approved Feb 11, 2020
@rauljordan rauljordan merged commit a732531 into master Feb 11, 2020
Slashing automation moved this from Reviewer approved to Done Feb 11, 2020
@delete-merged-branch delete-merged-branch bot deleted the slasher-rework branch February 11, 2020 21:35
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
* begin beacon client

* adding in the proper receivers

* include all parts of the beacon client

* all comments included

* visibility and package comment
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
* begin beacon client

* adding in the proper receivers

* include all parts of the beacon client

* all comments included

* visibility and package comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
No open projects
Slashing
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants