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

Refactor Casper Validators Into Core/Validators Stateless Package #875

Merged
merged 26 commits into from
Nov 21, 2018

Conversation

terencechain
Copy link
Member

This is part of #781

Description
This PR extracts the validator functions into their own stateless, pure package within beacon-chain/core/validators/

Note: WIP. Building this on top of #870, not ready for review

@terencechain terencechain self-assigned this Nov 21, 2018
@codecov
Copy link

codecov bot commented Nov 21, 2018

Codecov Report

Merging #875 into master will increase coverage by 0.02%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master     #875      +/-   ##
==========================================
+ Coverage   73.57%   73.59%   +0.02%     
==========================================
  Files          67       67              
  Lines        4371     4367       -4     
==========================================
- Hits         3216     3214       -2     
+ Misses        837      835       -2     
  Partials      318      318

)

const bitsInByte = 8

var log = logrus.WithField("prefix", "core/validators")
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to add log here (we are keeping these packages stateless and no assumptions about where they'll be run. we can keep logs in services)

Copy link
Member Author

Choose a reason for hiding this comment

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

that makes sense

@rauljordan
Copy link
Contributor

Just a small change and then it will be ready

@terencechain terencechain merged commit 391eacd into master Nov 21, 2018
@nisdas nisdas deleted the refactor-casper-validator branch January 28, 2019 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants