-
Notifications
You must be signed in to change notification settings - Fork 429
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
EIP-7702 and EIP-7251 #7459
Open
ak88
wants to merge
558
commits into
master
Choose a base branch
from
pectra_fix_7702_after_merge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
EIP-7702 and EIP-7251 #7459
+3,737
−634
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Ben Adams <[email protected]> Co-authored-by: Kamil Chodoła <[email protected]> Co-authored-by: nethermind-machine <[email protected]> Co-authored-by: LukaszRozmej <[email protected]> Co-authored-by: Daniel Kyutae Jung <[email protected]> Co-authored-by: Ahmad Bitar <[email protected]> Co-authored-by: Lukasz Rozmej <[email protected]> Co-authored-by: Amirul Ashraf <[email protected]> Co-authored-by: yerke26 <[email protected]> Co-authored-by: yeerke <[email protected]> Co-authored-by: Ruben Buniatyan <[email protected]> Co-authored-by: Alexey <[email protected]> Co-authored-by: Nikita Mescheryakov <[email protected]> Co-authored-by: Lautaro Emanuel <[email protected]> Co-authored-by: Marcos Antonio Maceo <[email protected]> Co-authored-by: ak88 <[email protected]> Co-authored-by: Yaroslav Kukharuk <[email protected]> Co-authored-by: Marek Moraczyński <[email protected]> Co-authored-by: Ahmad Bitar <[email protected]> Co-authored-by: Oleg Jakushkin <[email protected]> Co-authored-by: Kamil Chodoła <[email protected]> Co-authored-by: healthyyyoung <[email protected]>
MarekM25
approved these changes
Oct 2, 2024
|
||
requestsList.AddRange(_depositsProcessor.ProcessDeposits(block, receipts, spec)); | ||
requestsList.AddRange(_withdrawalRequestsProcessor.ReadWithdrawalRequests(block, state, spec)); | ||
using ArrayPoolList<ConsensusRequest> requestsList = new(receipts.Length * 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, but block.Requests.Length will give us the correct capacity besides Invalid blocks, maybe block.Requests.Length *2 then?
receipts are not related to requests. We can have 3 receipts and 16 requests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://eips.ethereum.org/EIPS/eip-7702
https://eips.ethereum.org/EIPS/eip-7251 (consolidations)
Changes
Adds an authorization_list to tx that is used to set delegations on EOAs in the form of
0xef0100 || address
When the EOA is called it is delegated to the
address
, in similar fashion as aDELEGATECALL
.EVM opcodes like
EXTCODESIZE
,EXTCODECOPY
etc. are affected by a delegation.Other things to note:
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs
. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.