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

Add native callTracer and refactor based on new go-ethereum paradigms #467

Conversation

ziogaschr
Copy link
Member

@ziogaschr ziogaschr commented Apr 14, 2022

This PR achieves the following:
[x] Refactor of parity like tracer added at core-geth, so as it follows the go-ethereum paradigms.
[x] Add new native callParityTracer that is much faster as it runs in Go.
[x] Add more tests for tracers.
[x] Update the compatibility layer with OE based on their latest changes, and running a full comparison test based on this OE branch which used OE v3.3.4.

--

stateDiff tracer will be simplified and be converted in a native tracer in a next PR.

…rs/js/internal/tracers: rename tracer; fix precompiled check to happen on CaptureExit
…emove `creationMethod` from tests"

This reverts commit 0385ae4.
…s/native: on parity tracer (Delegate|Static)call uses the value from parent, if zero
…a/state_diff: use stateOverrides for stateDiff tracer (draft)
…a/state_diff: fix/change stateDiff tracer tests to use stateOverrides
@meowsbits
Copy link
Member

Is this still a WIP? Any in particular you'd like feedback on?

@ziogaschr
Copy link
Member Author

No it's not, I just want to squash some commits.
I will also remove the new callTracerParityJs tracer as it is exactly the same as the native one and it only adds technical debt and adds an extra worry on how to remove it later on.

I suggest we merge this branch on Monday and continue with stateDiff on a new branch.

…t stateDiff test runner to use non Legacy tracer
…ce_call

go-ethereum instead added stateOverrides support
…a/call_tracer_parity,eth/tracers/js/internal/tracers,eth/tracers/native: eth/tracers/internal/tracetest,eth/tracers/internal/tracetest/testdata/call_tracer_parity,eth/tracers/js/internal/tracers,eth/tracers/native: (omit)empty Parity call tracer fields based on OE
…racers/internal/tracetest,eth/tracers/js/internal/tracers: remove callTracerParityJs as we a same native tracer

and it will add tech debt for later in order to remove it
@ziogaschr ziogaschr force-pushed the merge/foundation-release/1.10.17-tracer branch from e71019b to 4bc7f95 Compare April 18, 2022 11:30
@ziogaschr ziogaschr changed the title Add native callTracer and refactor based on new go-ethereum paradigms [WiP] Add native callTracer and refactor based on new go-ethereum paradigms Apr 18, 2022
Renames method to make it clear that the method
will modify the pointer argument.

Date: 2022-04-18 06:07:11-07:00
Signed-off-by: meows <b5c6@protonmail.com>
@meowsbits
Copy link
Member

LGTM 🚀

@ziogaschr ziogaschr merged commit 78dbab5 into merge/foundation-release/1.10.17 Apr 18, 2022
@ziogaschr ziogaschr deleted the merge/foundation-release/1.10.17-tracer branch April 18, 2022 19:55
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.

None yet

2 participants