-
Notifications
You must be signed in to change notification settings - Fork 245
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
Conversation
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.
ty, smol nits
pub struct MuxConfig { | ||
#[serde(flatten)] | ||
pub tracers: HashMap<GethDebugBuiltInTracerType, Option<GethDebugTracerConfig>>, |
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.
can we also use tuple new type here like MuxFrame
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.
yea, good idea
@@ -240,6 +253,13 @@ impl GethDebugTracerConfig { | |||
} | |||
self.from_value() | |||
} | |||
|
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.
+one line doc
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.
done
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`.
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