-
Notifications
You must be signed in to change notification settings - Fork 31
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: mid election rotation #331
Merged
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
406bebe
poc: mid election change
gzeoneth 7f38f4b
fix: disallow rotate in the change target
gzeoneth 5bdfba3
feat: rotateForFutureMember
gzeoneth 712956e
fix: checks
gzeoneth 6f3a1f1
fix: _checkNotRotatingSrcOrTarget
gzeoneth 2f22b01
Updated function names and added rotatingToNonce
yahgwai a56fed7
Change name to rotationNonce and use it standard rotation
yahgwai 050a0cf
Test updates for new nonce
yahgwai 94bb769
Test formatting
yahgwai 27ef32a
Test updates
yahgwai 20cf16d
Updated comments
yahgwai 8e41005
Gap update
yahgwai 4bd4692
Gas snapshot
yahgwai 18b137f
Updated sigs
yahgwai bda0169
Updated remove member action test for new nonce
yahgwai 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
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.
Tbh we might as well drop these check and relies on the psudo try-catch in replaceCohort entirely; say if somehow all elected member decided to set
rotateForFutureMember
to the same address, it simply would became a no-op. What's important is you cannot dos other user who actually want to rotate, but the signature check should suffice.