Skip to content

feat: mid election rotation#331

Merged
yahgwai merged 15 commits intosc-rotation-updatefrom
poc-mid-election
Feb 12, 2025
Merged

feat: mid election rotation#331
yahgwai merged 15 commits intosc-rotation-updatefrom
poc-mid-election

Conversation

@gzeoneth
Copy link
Copy Markdown
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
Copy Markdown
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