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

feat: mid election rotation #331

Merged
merged 15 commits into from
Feb 12, 2025
Merged

feat: mid election rotation #331

merged 15 commits into from
Feb 12, 2025

Conversation

gzeoneth
Copy link
Collaborator

@gzeoneth gzeoneth commented Feb 6, 2025

No description provided.

Comment on lines 427 to 431
// this serves 2 purposes:
// 1. it prevents "chained" rotations
// 2. it allow one to check rotatingTo[x] to see if x can be a rotation target
_checkNotRotatingSrcOrTarget(newAddress);
rotatingTo[newAddress] = newAddress;
Copy link
Collaborator Author

@gzeoneth gzeoneth Feb 7, 2025

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.

@yahgwai yahgwai marked this pull request as ready for review February 12, 2025 14:56
@yahgwai yahgwai merged commit 42f1348 into sc-rotation-update Feb 12, 2025
7 of 8 checks passed
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.

2 participants