Skip to content

eth/tracers/native: fix flatCallTracer Stop() bug#29623

Merged
fjl merged 5 commits intoethereum:masterfrom
draganm:fix-flat-call-tracer-stop
Apr 30, 2024
Merged

eth/tracers/native: fix flatCallTracer Stop() bug#29623
fjl merged 5 commits intoethereum:masterfrom
draganm:fix-flat-call-tracer-stop

Conversation

@draganm
Copy link
Copy Markdown
Contributor

@draganm draganm commented Apr 23, 2024

Fix for #29622:

Store reason when Stop is called in the flatCallTracer. This will be returned when GetResult() is called.

@draganm draganm requested a review from s1na as a code owner April 23, 2024 09:20
Copy link
Copy Markdown
Contributor

@s1na s1na left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goot catch. Pushed some changes to fix the interrupt signal. LGTM

Comment thread eth/tracers/native/call_flat_test.go
Comment thread eth/tracers/native/call_flat.go Outdated
@s1na
Copy link
Copy Markdown
Contributor

s1na commented Apr 25, 2024

Jotting down result of discussion: we can avoid all the if interrupt.Load() checks if we instead clear the function pointers on Stop. Note this would apply to all other tracers too. This is because EVM already checks for hook != nil and will not invoke those methods.

@fjl fjl merged commit 7c7e3a7 into ethereum:master Apr 30, 2024
jorgemmsilva pushed a commit to iotaledger/go-ethereum that referenced this pull request Jun 17, 2024
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
gzliudan pushed a commit to gzliudan/XDPoSChain that referenced this pull request Sep 10, 2025
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Sep 13, 2025
Co-authored-by: Dragan Milic <dragan@netice9.com>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
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.

6 participants