optimism
optimism copied to clipboard
op-batcher/batcher: check txpool state in state publishing loop
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 automically 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]