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

bug fix: Be resilient to failing txs in debug trace block [v6.0.0] #1948

Open
wants to merge 1 commit into
base: v6.0.0-hotfix-3-branch
Choose a base branch
from

Conversation

jewei1997
Copy link
Contributor

@jewei1997 jewei1997 commented Nov 19, 2024

Describe your changes and provide context

geth changes: sei-protocol/go-ethereum#36
fixes:

The #1943 "address 0xxxx is not linked" issue is caused by not being able to retrieve the previous/parent block's statedb due to an association error. Instead of just erroring out completely, we want to still try our best to return a statedb for the parent block to run debug trace blocks on the current block.

The #1944 "Nonce too low" issue is caused when a tx in the current block is not able to be traced. In this situation, we want to just skip over this tx and continue to trace other txs in the same block instead of erroring out completely.

Testing performed to validate your change

existing tests + manual testing on archive node

@jewei1997 jewei1997 requested a review from codchen November 19, 2024 21:06
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.36%. Comparing base (38418af) to head (a3fcb9d).

Files with missing lines Patch % Lines
evmrpc/simulate.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                    Coverage Diff                     @@
##           v6.0.0-hotfix-3-branch    #1948      +/-   ##
==========================================================
- Coverage                   61.51%   61.36%   -0.16%     
==========================================================
  Files                         263      263              
  Lines                       23328    23327       -1     
==========================================================
- Hits                        14351    14314      -37     
- Misses                       7969     8008      +39     
+ Partials                     1008     1005       -3     
Files with missing lines Coverage Δ
evmrpc/simulate.go 65.21% <0.00%> (+0.21%) ⬆️

... and 3 files with indirect coverage changes

---- 🚨 Try these New Features:

@jewei1997 jewei1997 force-pushed the jeremy-hotfix-trace-block-resilient-to-tx-errs/v6.0.0 branch from a28e5f9 to a3fcb9d Compare November 19, 2024 21:15
@jewei1997 jewei1997 changed the title bug fix: Be resilient to failing txs in debug trace block bug fix: Be resilient to failing txs in debug trace block [v6.0.0] Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant