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

Make gas limit constant #188

Closed
wants to merge 0 commits into from
Closed

Conversation

berndbohmeier
Copy link
Contributor

@berndbohmeier berndbohmeier commented May 20, 2020

What was wrong?

Fixes #186
The gas limit changed because of py-evm backend

How was it fixed?

By overriding the header creation function to just copy the gas limit from the parent.

Let me know if this was the correct place to add the tests.
I did not know why validate_seal was added as @classmethod, so maybe you want that for create_header_from_parent` too.
Also, this might be a breaking change for folks that rely on that behavior (one test here also expected that behavior). Another option would be to make it somehow configurable, but that would be more work. I think the default should be constant gas limit.

@carver
Copy link
Contributor

carver commented Jun 1, 2020

Oof, interesting, it force-closed this on the force-push with a typo, but then won't let me fix it. I can't reopen the PR or push the correct branch. Sorry about that. Obviously the commits will still be attributed to you. I'll reopen in a sec, in a separate PR.

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.

Gas limit is not constant
2 participants