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

Research Area: Configurable Max Bytecode Size #355

Open
tynes opened this issue Aug 27, 2024 · 2 comments
Open

Research Area: Configurable Max Bytecode Size #355

tynes opened this issue Aug 27, 2024 · 2 comments

Comments

@tynes
Copy link
Contributor

tynes commented Aug 27, 2024

There is a desire to make the max bytecode size configurable by the chain operator. This would allow chains in increase or decrease their max bytecode size by calling the SystemConfig, similar to how other protocol level constants are tweaked. We would want to ensure that there is a max bytecode size enforced in the SystemConfig, to prevent denial of service attacks during jumpdest analysis. We would also want a way to not use this feature for chains that want Ethereum compatibility, meaning that the OP Stack override wouldn't apply and the L1 consensus rules would take precedent. An easy way to do this is to use uint256(0) as a magic number that means off. It is possible that we would also want a min size to prevent the chain operator from turning off code, unless that is a desired feature.

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

No branches or pull requests

4 participants
@tynes and others