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

Verify tx gas isn't too large in VerifyTx #3604

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Dec 17, 2024

Why this should be merged

Currently the mempool is allowed to contain transactions with too large of a gas usage.

How this works

Enforce that the gas usage of a tx is <= the current gas capacity.

How this was tested

Need to be documented in RELEASES.md?

Copy link
Contributor

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

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

Logic equivalent to current check in block building, modulo the use of max capacity as discussed.

@StephenButtolph StephenButtolph marked this pull request as ready for review December 17, 2024 13:01
@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 17, 2024
Merged via the queue into master with commit bc0f401 Dec 17, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the enforce-maximum-capacity-in-verify-tx branch December 17, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants