-
Notifications
You must be signed in to change notification settings - Fork 60
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
rusk: Configurable block gas limit #2127
Conversation
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.
LGTM
PS: not related to this PR, but I believe we should have two different gas limit (GENERATOR_GAS_LIMIT and MAX_VALID_GAS_LIMIT)
One will be used while generating a new block, and the other one should be used to check that the incoming block has gas limit not greater than the maximum block gas limit.
What do you think about it? @goshawk-3 @fed-franz
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 not familiar with this, but why do we use different values of this limit in tests and benches.
There's only one case where this is explained.
I agree. Also, the maximum value should be tied to the protocol version |
Valid point! Let's file an issue for it. |
fixes #2121
TESTED:
chain.block_gas_limit
is not provided thenchain.block_gas_limit
= 9000000000 in toml then