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

Tests for EIP-3651: Warm COINBASE #1082

Merged
merged 7 commits into from
Feb 15, 2023
Merged

Conversation

marioevz
Copy link
Member

Changes included

Adds tests for Shanghai fork upgrade EIP-3651.

Coinbase account is now warm and is by default added to the accessed_addresses list when the transaction starts execution.

We test accessing the account with the following opcodes:

  • EXTCODESIZE
  • EXTCODECOPY
  • EXTCODEHASH
  • BALANCE
  • CALL
  • CALLCODE
  • DELEGATECALL
  • STATICCALL

Requires Shanghai fork to be added to retesteth.

@marioevz marioevz marked this pull request as ready for review January 9, 2023 21:55
@chfast
Copy link
Member

chfast commented Feb 9, 2023

What is the status of this?

@marioevz
Copy link
Member Author

marioevz commented Feb 9, 2023

@winsvega I refilled these tests with latest ethereum/retesteth@faead84 and updated the yul code because it was being optimized by solc.
I think this is ready for merge.

@winsvega
Copy link
Collaborator

winsvega commented Feb 9, 2023

Add vectors to /src/readme

@marioevz
Copy link
Member Author

Add vectors to /src/readme

Added, let me know if the format of the descriptions is ok.


## Warm COINBASE EIP-3651

- ID: **WRMCB0001** check EXTCODESIZE gas cost on coinbase
Copy link
Collaborator

@winsvega winsvega Feb 10, 2023

Choose a reason for hiding this comment

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

the same key should also be mentioned in the test file in comments or in info section comment field. so we can find the test.
if one test contains many test vectors ids implementation can put a comment right next to the block that executes a scenario (for bc tests) or transaction data that implements it.
In yml comments supported by format with #
In json fillers any field started with "//" is deleted

@winsvega
Copy link
Collaborator

ready?

@winsvega winsvega merged commit aa6d8cf into ethereum:develop Feb 15, 2023
@marioevz marioevz deleted the eip-3651-tests branch February 15, 2023 15:46
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.

3 participants