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

cmd,eth: register live tracer RPCs #30308

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Aug 16, 2024

Hi @s1na, could you please review this pre-PR for the live trace_xxx RPC? Below are the main points covered in this PR:

  1. The live tracer is registered with the tracing.Backend interface, which will be utilized internally.
  2. Within the live tracer, I’ve added another field, which is []rpc.API, so we can use stack.RegisterAPIs to register the JSON-RPC interfaces.
  3. A new function BlockChain.SetLogger, has been added to enable setting the live tracer once it is fully initialized.

cmd/utils/flags.go Outdated Show resolved Hide resolved
cmd/utils/flags.go Outdated Show resolved Hide resolved
@jsvisa jsvisa requested a review from s1na August 22, 2024 03:16
@jsvisa jsvisa changed the title cmd,eth: lazy initialize and register live tracer rpc cmd,eth: register live tracer RPCs Aug 22, 2024
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