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

Implement pectra devnet-5 spec #3807

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Implement pectra devnet-5 spec #3807

wants to merge 12 commits into from

Conversation

jochem-brouwer
Copy link
Member

@jochem-brouwer jochem-brouwer commented Nov 25, 2024

This PR incorporates the changes of EIP-7702 and EIP-7685 for devnet-5 as outlined in: https://notes.ethereum.org/@ethpandaops/pectra-devnet-5

ethereum/EIPs#8969
ethereum/EIPs#8989
ethereum/execution-apis#574

Will keep this PR as draft, because the 7702 changes might get a follow-up PR (regarding the designator, see: ethereum/EIPs#8969 (comment)) Just got convinced that this is not a problem and we should stick to 0xef01 as "code" when reading from delegated accounts

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 53.48837% with 20 lines in your changes missing coverage. Please review.

Project coverage is 77.75%. Comparing base (84700fb) to head (7e2d406).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 73.52% <68.18%> (-0.23%) ⬇️
blockchain 83.23% <ø> (ø)
client ?
common 89.91% <100.00%> (+0.02%) ⬆️
devp2p 71.95% <ø> (ø)
evm 64.92% <18.75%> (-0.02%) ⬇️
genesis 100.00% <ø> (ø)
mpt 52.12% <ø> (-0.22%) ⬇️
rlp 95.11% <ø> (ø)
statemanager 67.81% <ø> (ø)
tx 76.56% <ø> (+0.03%) ⬆️
util 72.81% <ø> (ø)
vm ?
wallet 79.67% <ø> (ø)

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

@jochem-brouwer
Copy link
Member Author

Have added a review+blocked label, I suggest we use this PR as devnet-5 branch until devnet-4 is taken offline.

@jochem-brouwer
Copy link
Member Author

Devnet-4 is deleted, so we can now merge Devnet-5 changes into master, have removed blocked label.

@jochem-brouwer
Copy link
Member Author

Ah ok tests failing, will fix tomorrow (likely block hashes / request hashes since those have changed)

// TODO: verify that this is the correct designator
// The PR https://github.com/ethereum/EIPs/pull/8969 has two definitions of the
// designator: the original (0xef0100) and the designator added in the changes (0xef01)
const eip7702Designator = hexToBytes('0xef01')
Copy link
Contributor

Choose a reason for hiding this comment

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

Just confirming my thinking. These only get computed once at run time, right? They aren't recomputed every single time we access this code are they?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only computed once! Can also move it somewhere else like types.ts.

@jochem-brouwer jochem-brouwer marked this pull request as ready for review November 26, 2024 15:29
@jochem-brouwer jochem-brouwer marked this pull request as draft November 26, 2024 17:37
@jochem-brouwer
Copy link
Member Author

Have converted this back to "draft" and added blocked label again. This will be our prep-branch for devnet-5. Our master branch will currently support devnet-4 (even though devnet-4 is now nuked). The reason is that the Mekong testnet is devnet-4 specced: https://notes.ethereum.org/@ethpandaops/mekong#Which-versionbranch-do-I-use and it is still up.

Point all devnet-5 related PRs to this PR :) (branch devnet-5)

Copy link
Contributor

@scorbajio scorbajio left a comment

Choose a reason for hiding this comment

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

This looks good, the comments are really useful 🙂

@g11tech
Copy link
Contributor

g11tech commented Dec 7, 2024

changed for ethereum/execution-apis#574 are now in the branch

@g11tech g11tech changed the title Add changes of EIP-7702 and EIP-7685 for devnet-5 to EVM/VM Implement pectra devnet-5 spec Dec 7, 2024
jochem-brouwer and others added 5 commits December 16, 2024 23:57
* common/evm/vm: implement EIP7623 calldata cost increase

* move the floorcost update and add debug log

* fix t8ntool empty requests reporting

* common: add 7623

* tx: add 7623 validator

* t8n: throw on invalid txs

* make cspell happy

---------

Co-authored-by: harkamal <[email protected]>
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.

5 participants