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

Prepare spanner for double vote detection and fix a few bugs #4940

Merged
merged 10 commits into from Feb 26, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Feb 25, 2020

Part of #4836

This PR goes through the spanner and prepares it for the changes needed to catch double voting. Mainly test additions.

Detailed: https://hackmd.prylabs.network/EcYUo5koQhmWW0_pSlPHSQ

@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@2570710). Click here to learn what that means.
The diff coverage is 100%.

@@           Coverage Diff            @@
##             master   #4940   +/-   ##
========================================
  Coverage          ?   4.04%           
========================================
  Files             ?      71           
  Lines             ?    6130           
  Branches          ?       0           
========================================
  Hits              ?     248           
  Misses            ?    5862           
  Partials          ?      20

@0xKiwi 0xKiwi changed the title Change Spanner to take in target epoch as key instead of source epoch [WIP] Change Spanner to take in target epoch as key instead of source epoch Feb 25, 2020
@0xKiwi 0xKiwi changed the title [WIP] Change Spanner to take in target epoch as key instead of source epoch Change Spanner to take in target epoch as key instead of source epoch Feb 25, 2020
@0xKiwi 0xKiwi changed the title Change Spanner to take in target epoch as key instead of source epoch Fix a few spanner bugs and add more tests Feb 25, 2020
@0xKiwi 0xKiwi changed the title Fix a few spanner bugs and add more tests Prepares spanner for double vote detection and fixes a few bugs Feb 25, 2020
@0xKiwi 0xKiwi changed the title Prepares spanner for double vote detection and fixes a few bugs Prepare spanner for double vote detection and fix a few bugs Feb 25, 2020
Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

had one comment . would like to see a more complex test scenario otherwise looks good

@0xKiwi 0xKiwi requested a review from shayzluf February 25, 2020 17:13
shayzluf
shayzluf previously approved these changes Feb 26, 2020
Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

Lgtm

@rauljordan rauljordan merged commit c2b30cf into prysmaticlabs:master Feb 26, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
…iclabs#4940)

* Rename vars for clarity

* Change spanner to take target epoch as key

* Fix tests, add multiple val test

* Fixes

* Change the spanner to take in att on detect

* Add back proto diagram tests

* Remove unneeded comments
@0xKiwi 0xKiwi deleted the slasher-change-to-target branch March 15, 2020 15:03
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.

None yet

3 participants