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

Added context to how the block max limit can be changed #13037

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

JacobSharples
Copy link
Contributor

Added two sentences on how the block gas limit can be changed by consensus

Description

Related Issue

Added two sentences on how the block gas limit can be changed by consensus
Copy link

netlify bot commented May 26, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit bd4e95f
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/665382fb983cbf0008ae6d83
😎 Deploy Preview https://deploy-preview-13037--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 34 (🔴 down 4 from production)
Accessibility: 92 (no change from production)
Best Practices: 89 (🔴 down 3 from production)
SEO: 93 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@JacobSharples JacobSharples changed the title Update index.md Added context to how the block max limit can be changed Jun 6, 2024
@wackerow
Copy link
Member

Hey @JacobSharples, guess I wasn't familiar with this exact detail... do you have a reference for this by chance?

@corwintines
Copy link
Member

I've been trying to find information on this. But, I haven't seen this in EIP-1559.

I know that block size can go up to 30 million gas, but that is the limit and there isn't an in protocol way to increase this. Do you have a source this information so I can better understand this change @JacobSharples

@wackerow wackerow added the question ❓ Further information is requested label Jun 25, 2024
@JacobSharples
Copy link
Contributor Author

Apologies for not attaching more information before. I used the EIP-1559 as a reference
image

after seeing some blocks with a gas limit > 30M. I started digging into this after I saw the website PumpTheGas and learned that stakers could change their max limit with a flag. However, to ensure that all nodes can execute all transactions, the change in the gas limit is capped (this is my understanding, there definitely seems to be a lack of info on this topic).

The gas limit change is restricted on how or low it change in a single block:
image

For example, block 20170216 has a max limit 30,029,295 (the parent and child block is 30M).

Doing the math, the max gas increase from a parent block of 30M is 30,000,000//1024 = 29,295

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Very cool, thanks for this @JacobSharples!

@wackerow wackerow merged commit 2cdea6e into ethereum:dev Jun 26, 2024
5 of 6 checks passed
Copy link

gitpoap-bot bot commented Jun 26, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

Be sure to join the Ethereum.org discord if you are interested in contributing further to the project or have any questions for the team.

GitPOAP: 2024 Ethereum.org Contributor:

GitPOAP: 2024 Ethereum.org Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@wackerow
Copy link
Member

@all-contributors please add @JacobSharples for content

Copy link
Contributor

@wackerow

I've put up a pull request to add @JacobSharples! 🎉

This was referenced Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❓ Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants