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

fix(api): Propagate fallback errors in traces #3469

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

popzxc
Copy link
Member

@popzxc popzxc commented Jan 14, 2025

(hopefully) fixes #3394
See the issue for the context.

Looks like some old transactions do not have error stored for out-of-gas errors. However, we know that they're failed, and we know that based on the error field from the transactions table.

This PR adds a "fallback" error -- if no other error is detected in the call trace, we use the error from the sequencer.

Granted, I do not have access to the mainnet DB, so not sure what error messages are inside, but if I am to guess, it will be more or less adequate. 😅

⚠️ To make things spicier, I have no way to test this functionality (per @dutterbutter report in the issue, it does not reproduce with the current protocol version), so it's kind of "hope it helps" fix. Please be careful during the review.

@popzxc popzxc force-pushed the popzxc-tracer-fallback-error branch from fe5ccd6 to c43a8f4 Compare January 14, 2025 07:52
@popzxc popzxc added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit 84e3e31 Jan 14, 2025
32 checks passed
@popzxc popzxc deleted the popzxc-tracer-fallback-error branch January 14, 2025 10:18
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.

Tracer doesn't detect out-of-gas errors
2 participants