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-trace-types): add support for mux tracer #252

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

ArtificialPB
Copy link
Contributor

@ArtificialPB ArtificialPB commented Mar 6, 2024

Motivation

Part of mux tracer implementation, see: paradigmxyz/revm-inspectors#49
Required by this PR: paradigmxyz/revm-inspectors#57

Solution

Add new Geth built-in tracer type: muxTracer. Allows executing multiple tracers in a single call.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes (new enum variants)

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.

ty, smol nits

Comment on lines 8 to 10
pub struct MuxConfig {
#[serde(flatten)]
pub tracers: HashMap<GethDebugBuiltInTracerType, Option<GethDebugTracerConfig>>,
Copy link
Member

Choose a reason for hiding this comment

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

can we also use tuple new type here like MuxFrame

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, good idea

@@ -240,6 +253,13 @@ impl GethDebugTracerConfig {
}
self.from_value()
}

Copy link
Member

Choose a reason for hiding this comment

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

+one line doc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@mattsse mattsse merged commit 64d0352 into alloy-rs:main Mar 6, 2024
14 checks passed
mattsse pushed a commit to paradigmxyz/revm-inspectors that referenced this pull request Mar 7, 2024
Adds support for `muxTracer`. Depends on changes from
alloy-rs/alloy#252

Once both PR's are good to go I'll open a PR also for `reth`.
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