Skip to content

Conversation

@chfast
Copy link
Member

@chfast chfast commented Jan 16, 2025

  • Compute transaction data cost using "token" count from EIP-7623.
  • Clean up related constants.
  • Treat creation as additional cost (TX_CREATE_COST).

@chfast chfast force-pushed the refactor_tx_data_cost branch from 4da88a4 to 76b5c0f Compare January 17, 2025 13:17
@chfast chfast enabled auto-merge (squash) January 17, 2025 13:18
- Compute transaction data cost using "token" count from EIP-7623.
- Clean up related constants.
- Treat creation as additional cost (`TX_CREATE_COST`).
@chfast chfast force-pushed the refactor_tx_data_cost branch from 76b5c0f to 90245f0 Compare January 17, 2025 13:23
@chfast chfast merged commit 34ce775 into master Jan 17, 2025
23 checks passed
@chfast chfast deleted the refactor_tx_data_cost branch January 17, 2025 13:35
@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (db5d7c0) to head (90245f0).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1108   +/-   ##
=======================================
  Coverage   94.31%   94.31%           
=======================================
  Files         159      159           
  Lines       17296    17298    +2     
=======================================
+ Hits        16312    16314    +2     
  Misses        984      984           
Flag Coverage Δ
eof_execution_spec_tests 23.80% <100.00%> (+<0.01%) ⬆️
ethereum_tests 26.88% <100.00%> (+<0.01%) ⬆️
ethereum_tests_silkpre 18.94% <100.00%> (+0.02%) ⬆️
execution_spec_tests 21.28% <100.00%> (+<0.01%) ⬆️
unittests 88.98% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
test/state/state.cpp 98.42% <100.00%> (+0.01%) ⬆️

chfast added a commit that referenced this pull request Jan 20, 2025
This implements [EIP-7623](https://eips.ethereum.org/EIPS/eip-7623).
In effect, during transaction validation we compute minimal transaction
gas cost. After transaction execution the amount of gas used is
increased to this value if lower.

Requires #1107 #1108
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.

3 participants