Skip to content

fix(l1): increase max_fee_per_gas to avoid blocks with 0 txs in load test #2615

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

Merged
merged 3 commits into from
Apr 29, 2025

Conversation

edg-l
Copy link
Contributor

@edg-l edg-l commented Apr 28, 2025

Motivation

Due to feeding so many txs, the base fee keeps increasing so when it goes beyond the load test txs max fee per gas, the block will have 0 txs due to them all having the same max fee per gas.

This pr increasing the load test max fee per has to u64 MAX and lowers priority fee per gas to decreasing (realistically removing) the chance of 0 block txs in load tests

Description

Closes #2523

Verified

This commit was signed with the committer’s verified signature.
edg-l Edgar
@edg-l edg-l requested a review from a team as a code owner April 28, 2025 08:04
Copy link

github-actions bot commented Apr 28, 2025

Lines of code report

Total lines added: 4
Total lines removed: 0
Total lines changed: 4

Detailed view
+-------------------------------------+-------+------+
| File                                | Lines | Diff |
+-------------------------------------+-------+------+
| ethrex/crates/blockchain/payload.rs | 552   | +4   |
+-------------------------------------+-------+------+

max_fee_per_gas: Some(3121115334),
max_priority_fee_per_gas: Some(3000000000),
max_fee_per_gas: Some(u64::MAX),
max_priority_fee_per_gas: Some(10),
Copy link
Collaborator

Choose a reason for hiding this comment

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

why 10?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i just lowered it to an arbitrary number, do you have a suggestion?

@mpaulucci mpaulucci changed the title fix: increase max_fee_per_gas to avoid blocks with 0 txs in load test fix(l1): increase max_fee_per_gas to avoid blocks with 0 txs in load test Apr 28, 2025
edg-l added 2 commits April 29, 2025 08:21

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
edg-l Edgar
@jrchatruc jrchatruc added this pull request to the merge queue Apr 29, 2025
Merged via the queue into main with commit 991f0e7 Apr 29, 2025
20 checks passed
@jrchatruc jrchatruc deleted the load_test_max_fee branch April 29, 2025 18:36
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.

Why are there empty blocks in load tests?
4 participants