-
Notifications
You must be signed in to change notification settings - Fork 53
Upgrade contract to increase max validators #307
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
base: main
Are you sure you want to change the base?
Conversation
* increase validators limit to 1000
| import "../../SSVNetwork.sol"; | ||
|
|
||
| contract SSVNetworkUpgradeValidatorsPerOperator is SSVNetwork { | ||
| function initializev2(uint32 validatorsPerOperatorLimit_) external reinitializer(_getInitializedVersion() + 1) { |
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.
| function initializev2(uint32 validatorsPerOperatorLimit_) external reinitializer(_getInitializedVersion() + 1) { | |
| function initializev2(uint32 validatorsPerOperatorLimit_) external reinitializer(2) { |
I think this should do the job.
This means it can be called only once but probably it's still safer to add onlyOwner.
|
Changed |
riccardo-ssvlabs
left a comment
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.
Approving with the following discussed assumptions:
- only the owner will be able to call the new
initializev2function - we are ok with having this function callable multiple times, so it is not a real initializer anymore but it is more similar to a set function.
No description provided.