-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
feat: async shuffling refactor #6521
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4ed80d5
feat: move epoch off of EpochShuffling and implement on EpochCache
matthewkeil 874c38c
feat: move activeIndices off of EpochShuffling and implement on Epoch…
matthewkeil 7f9a640
feat: add shufflingDecisionRoot to epochCtx to allow pulling of shuff…
matthewkeil 33730b6
refactor: move getShufflingDecisionBlock with other shufflingDecision…
matthewkeil a661fff
feat: implement BaseShufflingCache but may need to revert to putting …
matthewkeil 53b11ea
feat: implement BaseShufflingCache
matthewkeil e778316
refactor: rename BaseShufflingCache
matthewkeil 0b23e0e
feat: add ShufflingCache metrics
matthewkeil 4cd6039
feat: finish refactor and get sim test and state-transition unit test…
matthewkeil e3e5e8f
fix: check-types issue by making IShufflingCache interface
matthewkeil 79f9b7e
chore: lint
matthewkeil 12f2828
chore: clean shuffling test getter
wemeetagain 54de656
chore: clean test typing
wemeetagain 51cc958
chore: clean getOrNull fn signature
wemeetagain 90b4b69
chore: rename getSync
wemeetagain 8cb1734
chore: simplify shuffling cache interface
wemeetagain 481b3f9
chore: remove add from IShufflingCache
wemeetagain 38c9b67
chore: use caller everywhere and small cleanup
wemeetagain aa29df2
chore: small naming
wemeetagain dd68551
chore: re-add ShufflingCacheCaller.testing
wemeetagain ec8bd02
chore: add minor comment
wemeetagain 6fb944f
chore: more refactoring
wemeetagain d6338fe
chore: more comments
wemeetagain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is a bit of a funky edge case. I do not like adding the metrics here but there is an instance where the ShufflingCache need to be created before the metrics object (during genesis) and refactoring for that condition was not ideal. So in that circumstance the CachedBeaconState is built with a ShufflingCache and then when the seedState is passed into the chain the metrics are added to the class. This will be extended to also add the
Logger
when the worker thread for building is added.