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

1859 trace failed transaction #1875

Merged
merged 28 commits into from
Apr 29, 2024
Merged

Conversation

kladkogex
Copy link
Collaborator

@kladkogex kladkogex commented Apr 23, 2024

We had a check inside the tracer that was checking for each traced op that
the gas cost of the op is less or equal to the remaining gas.

This is not true in case of out of gas revert for the last op recorded in the trace.
In this case the op gas is more than the remaining gas. This causes the revert.

The check was removed.

Also fixed two places in which the trace was not called for an op. Geth always ads an op
to the trace even if the op is not executed due to out of gas or error.

Also fixed the tests to work with the latest geth.

A test case has been added token_revert.ts

@kladkogex kladkogex self-assigned this Apr 23, 2024
@kladkogex kladkogex added this to the SKALE 2.3.1 (Archive node) milestone Apr 23, 2024
@kladkogex kladkogex linked an issue Apr 23, 2024 that may be closed by this pull request
@kladkogex kladkogex merged commit de3973a into develop Apr 29, 2024
7 checks passed
@kladkogex kladkogex deleted the 1859_trace_failed_transaction branch April 29, 2024 11:07
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skaled on archival node couldn't trace block with failed transaction
3 participants