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

feat(rpc-types-trace/prestate): support disable_{code,storage} #1538

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Oct 20, 2024

Motivation

In some cases, we only need to track the ether balance/nonce changes, so no need to return the lonng code/storage back, so propose to add two new options: disableCode and disableStorage to indicate wheather need to track code/storage or not.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Signed-off-by: jsvisa <[email protected]>
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I think these additional settings make sense, but there is no reference impl for these, right?

crates/rpc-types-trace/src/geth/pre_state.rs Show resolved Hide resolved
@jsvisa
Copy link
Contributor Author

jsvisa commented Oct 21, 2024

I think these additional settings make sense, but there is no reference impl for these, right?

Yeah, erigon's changes are also in the way erigontech/erigon#12384, and I'll file the similar changes for geth later

@mattsse mattsse merged commit 3ab24ea into alloy-rs:main Oct 22, 2024
26 checks passed
@jsvisa jsvisa deleted the prestate-no-code branch October 23, 2024 08:13
mattsse added a commit to paradigmxyz/revm-inspectors that referenced this pull request Oct 23, 2024
based on alloy-rs/alloy#1538

---------

Signed-off-by: jsvisa <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
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