Skip to content

eth/tracers: surface database errors during transaction tracing - #35530

Open
0xSHKWON wants to merge 1 commit into
ethereum:masterfrom
0xSHKWON:fix-tracer-dberr-surfacing
Open

eth/tracers: surface database errors during transaction tracing#35530
0xSHKWON wants to merge 1 commit into
ethereum:masterfrom
0xSHKWON:fix-tracer-dberr-surfacing

Conversation

@0xSHKWON

@0xSHKWON 0xSHKWON commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

traceTx never checked statedb.Error(), so a database read fault either produced a plausible but wrong trace, or masqueraded as an execution failure ("insufficient funds" for an account that actually has a balance). Check it before the execution error, the same way doCall already does for eth_call.

Note: traceBlock shares one statedb across a block's transactions, so a single fault now fails the whole call rather than just that transaction — same abort-on-error behavior it already has for other errors.

@0xSHKWON
0xSHKWON requested a review from rjl493456442 as a code owner August 13, 2026 09:01
@0xSHKWON
0xSHKWON force-pushed the fix-tracer-dberr-surfacing branch from d364cd9 to 75d602d Compare August 13, 2026 09:13
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.

1 participant