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

Handle racy edge cases in tx hash verification & handle nil latestBlock #10772

Merged
merged 5 commits into from
Sep 25, 2023

Conversation

infiloop2
Copy link
Contributor

@infiloop2 infiloop2 commented Sep 24, 2023

on mumbai, i saw some flaky issues when rpc did not return the tx receipt for a log it returned a few ms ago (via log poller)

i realized that we can simplify the whole log verification when logBlockHash is same as the checkBlockHash. This would help avoid any racy conditions for new logs (which are checked on logBlock itself). For any recovery runs, the log block would be older than finality anyway

Somewhat independently I also saw that there were a couple of places where we could have tried to read from a nil pointer from r.bs.latestBlock. Handle nil there

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@infiloop2 infiloop2 changed the title Handle racy edge cases in tx hash verification Handle racy edge cases in tx hash verification & handle nil latestBlock Sep 24, 2023
@infiloop2 infiloop2 marked this pull request as ready for review September 24, 2023 17:11
@infiloop2 infiloop2 requested a review from a team as a code owner September 24, 2023 17:11
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 53.8% 53.8% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

@infiloop2 infiloop2 added this pull request to the merge queue Sep 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 25, 2023
@infiloop2 infiloop2 added this pull request to the merge queue Sep 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 25, 2023
@infiloop2 infiloop2 added this pull request to the merge queue Sep 25, 2023
Merged via the queue into develop with commit 06a0f1e Sep 25, 2023
81 of 82 checks passed
@infiloop2 infiloop2 deleted the chore/improve-txreorg-detection branch September 25, 2023 12:11
@jira jira bot mentioned this pull request Oct 18, 2023
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.

2 participants