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

Update max gas amount #242

Closed
wants to merge 1 commit into from
Closed

Update max gas amount #242

wants to merge 1 commit into from

Conversation

Ben-Rey
Copy link
Contributor

@Ben-Rey Ben-Rey commented Nov 30, 2023

No description provided.

@Ben-Rey Ben-Rey requested a review from damip November 30, 2023 08:34
@@ -17,9 +17,9 @@ Each smart contract instruction consumes a defined amount of `gas` when executed

Protocol-defined gas limits ensuring a total slot execution time remains below 300 milliseconds
on the reference hardware are set as follows:
* the execution of autonomous smart contracts at each slot: `MAX_ASYNC_GAS = 1_000_000_000`
* the execution of all the operations of a block: `MAX_BLOCK_GAS = 4_294_967_295`
Copy link
Member

@damip damip Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, 4_294_967_295 remains the max total gas for the block.
The only difference is that the max_gas field is not the only component of the total gas used by an operation.
https://docs.massa.net/docs/learn/operation-format-execution#operation-total-gas

max_gas only accounts for code execution. Operation processing also incurs a computational cost that is taken into account.

@Ben-Rey Ben-Rey closed this Dec 26, 2023
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