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

eth/tracers: add txHash field on txTraceResult #2254

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

carterqw2
Copy link
Contributor

@carterqw2 carterqw2 commented Feb 12, 2024

Description

This PR modifies the interface for the results of debug_traceBlock and debug_traceCall by adding the txHash, allowing users to identify which transaction's trace result corresponds to.

Cherry picked ethereum/go-ethereum#27183 to make block tracing work (see details here).

Other changes

No.

Tested

Updated unit test.

Related issues

@carterqw2 carterqw2 changed the title eth/tracers: add txHash field on txTraceResult (#27183) eth/tracers: add txHash field on txTraceResult Feb 12, 2024
Copy link

github-actions bot commented Feb 12, 2024

Coverage from tests in ./e2e_test/... for ./consensus/istanbul/... at commit 1fc3473

coverage: 50.1% of statements across all listed packages
coverage:  63.4% of statements in consensus/istanbul
coverage:  43.3% of statements in consensus/istanbul/announce
coverage:  55.9% of statements in consensus/istanbul/backend
coverage:   0.0% of statements in consensus/istanbul/backend/backendtest
coverage:  24.3% of statements in consensus/istanbul/backend/internal/replica
coverage:  61.9% of statements in consensus/istanbul/core
coverage:  50.0% of statements in consensus/istanbul/db
coverage:   0.0% of statements in consensus/istanbul/proxy
coverage:  64.2% of statements in consensus/istanbul/uptime
coverage:  51.8% of statements in consensus/istanbul/validator
coverage:  79.2% of statements in consensus/istanbul/validator/random

Copy link

github-actions bot commented Feb 12, 2024

5891 passed, 45 skipped

This PR modifies the interface for the results of `debug_traceBlock` and `debug_traceCall` by adding the `txHash`, allowing users to identify which transaction's trace result corresponds to.

---------

Co-authored-by: Martin Holst Swende <[email protected]>
@carterqw2 carterqw2 marked this pull request as ready for review February 13, 2024 11:35
Copy link
Contributor

@piersy piersy left a comment

Choose a reason for hiding this comment

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

Looking good to me!

@carterqw2 carterqw2 merged commit 1fc3473 into master Feb 13, 2024
26 checks passed
@carterqw2 carterqw2 deleted the carterqw2/txhash-tracing branch February 13, 2024 13:35
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.

4 participants