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

Add early return in ComputeTxEnv for state sync transactions #12315

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

shohamc1
Copy link
Member

@shohamc1 shohamc1 commented Oct 15, 2024

ComputeTxEnv relied on txIndex < len(block.Transactions()) which is violated by Polygon's state sync event transaction. We handle this case by adding an early return for this case, returning only ibs and blockContext which is used during state sync event tracing.

Fixes #11701, #12007

@AskAlexSharov AskAlexSharov merged commit 9a73c4a into release/2.60 Oct 15, 2024
5 checks passed
@AskAlexSharov AskAlexSharov deleted the shohamc1/fix-debug-crash branch October 15, 2024 08:28
taratorio pushed a commit that referenced this pull request Oct 15, 2024
shohamc1 added a commit that referenced this pull request Oct 18, 2024
Refinement from #12315 as this condition should only be allowed under
certain cases.
yperbasis pushed a commit that referenced this pull request Oct 24, 2024
`ComputeTxEnv` relied on `txIndex < len(block.Transactions())` which is
violated by Polygon's state sync event transaction. We handle this case
by adding an early return for this case, returning only ibs and
blockContext which is used during state sync event tracing.

Fixes #11701, #12007
yperbasis added a commit that referenced this pull request Oct 24, 2024
Cherry pick #12315 into `release/2.61`

Co-authored-by: Shoham Chakraborty <[email protected]>
yperbasis pushed a commit that referenced this pull request Oct 24, 2024
Refinement from #12315 as this condition should only be allowed under
certain cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants