-
Notifications
You must be signed in to change notification settings - Fork 12
all: refactor new EVM live tracer struct #70
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
Open
chiphamskymavis
wants to merge
17
commits into
add-message-struct
Choose a base branch
from
evm-tracer-struct
base: add-message-struct
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO: pickup hookedStateDB refactoring ethereum/go-ethereum#30569 |
aec483a
to
2bdd3b1
Compare
…saction execution
* core/state: add tracing hook to state db * core/state: add tracing hook to state object * workflows: enable unit test
* core/state: add BalanceChangeReason to state object * core/state: add BalanceChangeReason to StateDB.AddBalance * core/state: add BalanceChangeReason to StateDB.SubBalance * core/state: add BalanceChangeReason to StateDB.SetBalance
* core/vm: add VMError * core/vm: use live tracer in EVMInterpreter.Run * core: add live tracer to applyTransaction * core: add live tracer to state transition flow * core/vm: run precompiled contract with live tracer * core/vm/runtime: add live tracer for runtime execution
* core/vm: remove usages of older tracer from interpreter * core: remove usages of older tracer from state transition * core/vm: remove usages of older tracer from evm * core/vm: remove usages of older tracer from instructions * all: replace the older tracer by live tracer * eth/tracer/logger,internal/ethapi: update access list tracer * all: replace LiveTracer by Tracer * all: support calltracer2 * eth/tracer/internal/tracetest: fix test
…etest (#83) * core: set logger for blockchain * tests: state test supports live tracer
* eth/tracer/live: add supply live tracer * eth/tracers: fix supply live tracer test * core: Close all tracers when stop blockchain * eth/tracers: fix supply live tracer test
* core, eth/tracers: move chainconfig to tracers * eth/tracer/live: add noop live tracer * core/tracers/live: rename supply to supplyTracer * cmd/utils, eth/tracers: set default tracer config to empty object
* core/vm/runtime: call OnTxStart before prepare state DB in Call * core/state: simplify state selfdestruct
…7702 gas call variant
1e23c63
to
9017971
Compare
This PR extends the Hooks interface with a new method, `OnSystemCallStartV2`, which takes `VMContext` as its parameter. Motivation By including `VMContext` as a parameter, the `OnSystemCallStartV2` hook achieves parity with the `OnTxStart` hook in terms of provided insights. This alignment simplifies the inner tracer logic, enabling consistent handling of state changes and internal calls within the same framework. --------- Co-authored-by: Sina Mahmoodi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors tracer
Reference PRs: