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

rpcdaemon: fix in eth_estimateGas/() with stateOverrides field #13772

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

lupin012
Copy link
Contributor

@lupin012 lupin012 commented Feb 12, 2025

In case state Overrides

  • in NewReusableCaller() it is created the ibs and filled with stateOverrides
  • in DoCallWithNewGas() the intraBlockState is re-init losing previous initialization (r.intraBlockState = state.New(r.stateReader)
    )
  • the NewReusableCaller() must be called in the execution loop to re-init intra block state with user configuration state changes and not state change from previous run

@lupin012 lupin012 marked this pull request as ready for review February 12, 2025 10:04
@lupin012 lupin012 marked this pull request as draft February 20, 2025 08:21
@lupin012 lupin012 removed the request for review from AskAlexSharov February 20, 2025 08:21
@lupin012 lupin012 marked this pull request as ready for review February 20, 2025 16:02
@AskAlexSharov AskAlexSharov enabled auto-merge (squash) February 21, 2025 10:01
@AskAlexSharov AskAlexSharov merged commit e41969a into main Feb 21, 2025
12 of 13 checks passed
@AskAlexSharov AskAlexSharov deleted the fix_in_estimateGas_with_stateOverrides branch February 21, 2025 10:31
somnathb1 pushed a commit that referenced this pull request Feb 23, 2025
In case state Overrides
- in NewReusableCaller() it is created the ibs and filled with
stateOverrides
- in DoCallWithNewGas() the intraBlockState is re-init losing previous
initialization (r.intraBlockState = state.New(r.stateReader)
)
- the NewReusableCaller() must be called in the execution loop to
re-init intra block state with user configuration state changes and not
state change from previous run

---------

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
Giulio2002 pushed a commit that referenced this pull request Feb 23, 2025
…ix historical (#13903), qa-tests fix (#13909), and optimize for max contract gas used (#13913) (#13916)

Needed for #13636

Cherry-pick #13772, #13903, #13909 and #13913

---------

Co-authored-by: Michelangelo Riccobene <michelangelo.riccobene@gmail.com>
Co-authored-by: lupin012 <58134934+lupin012@users.noreply.github.com>
Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
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.

2 participants