-
Notifications
You must be signed in to change notification settings - Fork 5
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
Solana mcm signers in ConfigSet event [NONEVM-1068] #393
Conversation
@@ -1,5 +1,5 @@ | |||
// Business-logic constants | |||
pub const MAX_NUM_SIGNERS: usize = 200; // This has to be below u8 limit (255). Value copied from EVM reference contract | |||
pub const MAX_NUM_SIGNERS: usize = 180; // maximum number of signers supported |
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.
I'm curious, is this what fixed the overflow?
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.
I have the same question 😄
Besides curiosity, I assume the limit is high enough anyway so probably nothing to worry about, but do you know more or less how many signers we have today? And who should we notify about the overall limit shrinking from 200 to 180? This affects other chains as well as MCMS is "many-chain" multisig
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.
@agusaldasoro 😅 with additional block scoping in set_config to save some runtime memory.
@toblich Thank you for checking in! I've been discussing the number of signers/signatures with the deployment automation team and research team - currently, 10-12 signers and 6-8 signatures are in production operation using mcms. So, 180 is pretty enough.
There will be another discussion with research side about those numbers(among mcm w/ timelock - signers, signatures, supported max transactions) after the holidays.
The base branch was changed.
|
This PR resolves the out-of-memory issue that was occurring when emitting ConfigSet events with large numbers of signers in the MCM program.
Primary Changes
Testing
Notes