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 [main] #1949

Merged
merged 3 commits into from
Nov 20, 2024

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

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.63%. Comparing base (de63e75) to head (256c496).

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

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1949      +/-   ##
==========================================
+ Coverage   61.38%   61.63%   +0.25%     
==========================================
  Files         263      263              
  Lines       23356    23355       -1     
==========================================
+ Hits        14337    14395      +58     
+ Misses       8015     7955      -60     
- Partials     1004     1005       +1     
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 merged commit 6730097 into main Nov 20, 2024
46 of 47 checks passed
@jewei1997 jewei1997 deleted the jeremy-hotfix-trace-block-resilient-to-tx-errs/main branch November 20, 2024 15:22
philipsu522 pushed a commit that referenced this pull request Nov 21, 2024
* trace block resilient to tx errs

* fix geth deps
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.

2 participants