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

Refactor/merge stateDiff from master on upstream release/1.10.1 #355

Conversation

ziogaschr
Copy link
Member

No description provided.

eth: add test for stateDiff tracer
eth, eth/tracers: resolve state_diff misconsistencies

eth: pass extra context to call JS tracers hasFromSufficientBalance*
eth: traceCall to use original TransferFunc instead of copy the logic and take care of mutating the value
…CapturePreEVM

Till this point, state_diff was manually calculating balance/nonce changes that have been executed pre/post EVM execution. This was error prone, as any change in consensus within go, will have to be transfered to JS logic as well.

This commit tackles this issue, by adding an init() method call, before anything is be run for a transaction.

eth: clean up vmctx.Tracer (pointer, refs, oh my)

Date: 2021-03-12 15:09:48-06:00
Signed-off-by: meows <b5c6@protonmail.com>
eth/tracers: remove commented out forgoten code

eth/tracers: remove unused types from tests

eth: fix lint issue :(

eth: remove spurious comment
ziogaschr and others added 15 commits March 30, 2021 13:39
Rel #345 (comment)

@ziogaschr, revert this if you hate it ;)

Date: 2021-03-30 16:55:21-05:00
Signed-off-by: meows <b5c6@protonmail.com>
It reassigns the `err` var in the if context instead of changing the outer context for the function return
I removed by mistake the stateDiff parts on previous commit, as I thought I was working on the PR #348.
Co-authored-by: meowsbits <b5c6@protonmail.com>
Implement stateDiff tracer, compatible with OpenEthereum
# Conflicts:
#	core/state_transition.go
#	core/vm/logger.go
#	eth/tracers/api.go
#	eth/tracers/api_parity.go
#	eth/tracers/internal/tracers/assets.go
#	eth/tracers/internal/tracers/prestate_tracer.js
#	eth/tracers/tracer.go
@ziogaschr ziogaschr requested a review from meowsbits April 7, 2021 22:02
@ziogaschr ziogaschr merged commit b82e4f1 into merge/foundation-release/1.10.1-resolved Apr 13, 2021
@ziogaschr ziogaschr deleted the merge/foundation-release/1.10.1-resolved-stateDiff branch April 13, 2021 13:23
@meowsbits
Copy link
Contributor

🐿

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