-
Notifications
You must be signed in to change notification settings - Fork 419
feat(test-benchmark): add EIP-7825 tx splitting and fix & include stubs.json #2052
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
feat(test-benchmark): add EIP-7825 tx splitting and fix & include stubs.json #2052
Conversation
…um#1842) Co-authored-by: spencer <[email protected]>
Add support for EIP-7825 transaction gas limit cap (16M gas) to bloatnet benchmark tests. When gas_benchmark_value exceeds tx_gas_limit, tests now automatically split into multiple transactions. Changes: - Add tx_gas_limit fixture parameter to all bloatnet test functions - Calculate num_txs based on gas_benchmark_value / tx_gas_limit - Split attack contracts across multiple transactions with proper iteration count distribution - Track salt_offset for factory-based tests to ensure unique contract addresses across transactions This ensures bloatnet tests work correctly with gas values > 16M while maintaining EIP-7825 compliance.
Add stubs.json mapping test names to mainnet ERC-20 contract addresses: - 297 entries for 99 unique tokens (excluding 30GB_ERC20) - Fixed 22 incorrect addresses (ALT, AOA, cETH, CHZ, CRO, ENA, ETHFI, GTC, IMT, IMX, KOK, LEND, LOOKS, LYM, MITx, Monfter/Monavale, ONDO, POLY, WEPE, ZETA, ZSC) - Removed WELL token (doesn't exist on Ethereum mainnet) - All addresses verified to have deployed code via eth_getCode
|
cc: @kamilchodola |
Collapse ternary expressions to single lines as required by ruff format.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forks/amsterdam #2052 +/- ##
================================================
Coverage 83.87% 83.87%
================================================
Files 402 402
Lines 25101 25101
Branches 2285 2285
================================================
Hits 21053 21053
Misses 3609 3609
Partials 439 439
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@CPerezz Could you help change the base branch from |
This modexp test case is exceptionally slow in EVM implementations using Go standard library `"math/big"`.
Summary
EIP-7825 Transaction Splitting
gas_benchmark_valueexceedstx_gas_limit, tests now automatically split into multiple transactionstx_gas_limitfixture parameter to all bloatnet test functionssalt_offsetfor factory-based tests to ensure unique contract addresses across transactionsToken Address Stubs (stubs.json)