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

op-batcher/batcher: check txpool state in state publishing loop #11633

Merged

Conversation

roberto-bayardo
Copy link
Collaborator

@roberto-bayardo roberto-bayardo commented Aug 28, 2024

Description

  • make state publishing loop abort if the txpool state is not good to prevent this loop from getting stuck due to blob and calldata transactions flip flopping and cancelling each other out.

  • protect txpool state vars with a mutex so they can be atomically updated to avoid potential race condition.

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

@roberto-bayardo roberto-bayardo force-pushed the txpool-state-fixes branch 2 times, most recently from 7559a93 to 027e309 Compare August 28, 2024 23:09
@roberto-bayardo roberto-bayardo marked this pull request as ready for review August 28, 2024 23:12
@roberto-bayardo roberto-bayardo requested a review from a team as a code owner August 28, 2024 23:12
@roberto-bayardo roberto-bayardo force-pushed the txpool-state-fixes branch 2 times, most recently from 28746e1 to 6fa5b69 Compare August 28, 2024 23:28
- protect txpool state vars with a mutex so they can be automically updated to avoid potential race
  condition
@sebastianst sebastianst added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@sebastianst sebastianst added this pull request to the merge queue Aug 29, 2024
Merged via the queue into ethereum-optimism:develop with commit 7373ce7 Aug 29, 2024
56 checks passed
@roberto-bayardo roberto-bayardo deleted the txpool-state-fixes branch August 29, 2024 17:03
@sebastianst sebastianst removed the request for review from refcell August 29, 2024 21:01
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