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

Remove getCode() from CodeDelegationService.processAccount #8392

Open
daniellehrner opened this issue Mar 6, 2025 · 0 comments
Open

Remove getCode() from CodeDelegationService.processAccount #8392

daniellehrner opened this issue Mar 6, 2025 · 0 comments
Assignees

Comments

@daniellehrner
Copy link
Contributor

Every time that we get an account in the EVM through EVMWorldUpdater we are calling getCode() to know if an account has delegated code or not. The performance overhead of this abstraction is too high and it might be a problem in the future with Verkle. We should refactor the code to only call getCode() when it is absolutely necessary. It should be necessary in at least 2 places:

  1. For the to account of a transaction at the beginning of the transaction
  2. Whenever *CALL* op code is used it is necessary for the target of this call
@daniellehrner daniellehrner self-assigned this Mar 6, 2025
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

No branches or pull requests

1 participant