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

tracers: debug APIs and chaindatafetcher use new vm.CallTracer #16

Merged
merged 5 commits into from
Jul 3, 2024

Conversation

blukat29
Copy link
Contributor

@blukat29 blukat29 commented Jun 20, 2024

Proposed changes

  • Follow-up of vm: New CallTracer impl and capture more cases in EVM  #15.
  • debug RPC API
    • callTracer was previously call_tracer.js and is now vm.CallTracer
    • fastCallTracer was previously vm.InternalTxTracer and is now vm.CallTracer
  • chaindatafetcher
    • ChainEvent.InternalTxTraces (enabled when --vm.internaltx) was previously produced by vm.InternalTxTracer and is now vm.CallTracer, but preserves the original InternalTxTrace output format.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the [ ] I have read the CONTRIBUTING GUIDELINES doc
  • I have read the CLA and signed by comment I have read the CLA Document and I hereby sign the CLA in first time contribute
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@blukat29 blukat29 force-pushed the api-new-calltracer branch from 7f8692e to 6dadef3 Compare June 21, 2024 06:12
@blukat29 blukat29 added the do not merge Do not merge just yet label Jun 21, 2024
@blukat29 blukat29 changed the base branch from dev to queue/v1.0.1 July 2, 2024 01:30
@blukat29 blukat29 removed the do not merge Do not merge just yet label Jul 2, 2024
@blukat29 blukat29 force-pushed the api-new-calltracer branch from 6dadef3 to db6615e Compare July 2, 2024 07:03
@blukat29 blukat29 changed the title tracers: debug trace API uses new vm.CallTracer tracers: debug APIs and chaindatafetcher use new vm.CallTracer Jul 2, 2024
@blukat29 blukat29 mentioned this pull request Jul 2, 2024
22 tasks
@blukat29 blukat29 force-pushed the api-new-calltracer branch from db6615e to ff0eed4 Compare July 3, 2024 01:29
@blukat29 blukat29 marked this pull request as ready for review July 3, 2024 01:29
@blukat29 blukat29 changed the base branch from queue/v1.0.1 to dev July 3, 2024 01:29
blukat29 and others added 4 commits July 3, 2024 14:35
Fix this error

```
panic: interface conversion: interface {} is json.RawMessage, not *vm.InternalTxTrace

goroutine 936 [running]:
github.com/klaytn/klaytn/datasync/chaindatafetcher.(*ChainDataFetcher).makeChainEvent(0xc08a357900, 0x4c4b401)
        /home/ec2-user/kaia/datasync/chaindatafetcher/chaindata_fetcher.go:323 +0xb30
github.com/klaytn/klaytn/datasync/chaindatafetcher.(*ChainDataFetcher).handleRequest(0xc08a357900)
        /home/ec2-user/kaia/datasync/chaindatafetcher/chaindata_fetcher.go:476 +0x1f4
created by github.com/klaytn/klaytn/datasync/chaindatafetcher.(*ChainDataFetcher).Start in goroutine 1
        /home/ec2-user/kaia/datasync/chaindatafetcher/chaindata_fetcher.go:174 +0x25
```
@blukat29 blukat29 force-pushed the api-new-calltracer branch from 54577cc to 23707d7 Compare July 3, 2024 05:35
@blukat29 blukat29 merged commit 3f0d609 into dev Jul 3, 2024
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2024
@blukat29 blukat29 deleted the api-new-calltracer branch July 8, 2024 00:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants