-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add split offset function v0.6 #2365
Add split offset function v0.6 #2365
Conversation
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.
There's already a split function in the same file 😅 https://github.com/prysmaticlabs/prysm/blob/master/beacon-chain/utils/shuffle.go#L63
there is no splitoffset function @terencechain
|
It's a split function. |
you are right, i thought it was an added function. didn't notice that it changed the old function. its an improvement to the other one. fixing |
093a81a
to
2052184
Compare
error format change Co-Authored-By: shayzluf <thezluf@gmail.com>
Codecov Report
@@ Coverage Diff @@
## spec-v0.6 #2365 +/- ##
==========================================
Coverage 69.16% 69.16%
==========================================
Files 119 119
Lines 9594 9594
==========================================
Hits 6636 6636
Misses 2264 2264
Partials 694 694 |
beacon-chain/utils/shuffle_test.go
Outdated
@@ -72,3 +72,20 @@ func TestSplitIndices_OK(t *testing.T) { | |||
} | |||
} | |||
} | |||
|
|||
func TestSplitOffset_OK(t *testing.T) { |
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.
Can you add a test that tests splitoffset only? This test seems to depend on SplitIndicies
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.
addressed here d0e4a47
[Part of] #2307
Add helper function SplitOffset needed for shuffling
includes:
TestSplitOffset_OK
SplitOffset
Write why you are making the changes in this pull request
to comply with 0.6 spec
Write a summary of the changes you are making
changes in:
Link anything that would be helpful or relevant to the reviewers
https://github.com/ethereum/eth2.0-specs/blob/dev/specs/core/0_beacon-chain.md#get_split_offset