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

Less restrictive block stream for slashing detection #6269

Merged
merged 25 commits into from
Jun 17, 2020
Merged

Conversation

shayzluf
Copy link
Contributor

@shayzluf shayzluf commented Jun 15, 2020

What type of PR is this?
Bug fix

What does this PR do? Why is it needed?
after #6164 has been reverted this PR is aiming to move validation responsibility of streamed block to rpc function (stream blocks). it adds StateSummaryCache to rpc service in order to handle validation of recent states using the new state gen.

Which issues(s) does this PR fix?

Fixes #6163

Other notes for review
block sig validation is dependant on new state get

@shayzluf shayzluf requested a review from a team as a code owner June 15, 2020 16:56
@shayzluf shayzluf changed the title verify sig in stream Less restrictive block stream for slashing detection Jun 15, 2020
beacon-chain/rpc/service.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #6269 into master will decrease coverage by 0.10%.
The diff coverage is 62.44%.

@@            Coverage Diff             @@
##           master    #6269      +/-   ##
==========================================
- Coverage   60.07%   59.96%   -0.11%     
==========================================
  Files         323      325       +2     
  Lines       27422    27643     +221     
==========================================
+ Hits        16473    16576     +103     
- Misses       8733     8794      +61     
- Partials     2216     2273      +57     

@shayzluf shayzluf self-assigned this Jun 16, 2020
@shayzluf shayzluf added the Ready For Review A pull request ready for code review label Jun 16, 2020
@shayzluf shayzluf requested a review from 0xKiwi June 16, 2020 22:23
terencechain
terencechain previously approved these changes Jun 17, 2020
@0xKiwi 0xKiwi merged commit 472fbd3 into master Jun 17, 2020
@delete-merged-branch delete-merged-branch bot deleted the verify_sig_in_rpc branch June 17, 2020 16:38
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
None yet
Development

Successfully merging this pull request may close these issues.

proposer slashing cannot be detected on p2p
3 participants