feat: implement clear pending txs for go batch submitter#2003
feat: implement clear pending txs for go batch submitter#2003mslipper merged 4 commits intoethereum-optimism:developfrom
Conversation
|
Codecov Report
@@ Coverage Diff @@
## develop #2003 +/- ##
========================================
Coverage 74.58% 74.58%
========================================
Files 79 79
Lines 2554 2554
Branches 401 401
========================================
Hits 1905 1905
Misses 649 649
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
a031617 to
c10dd53
Compare
df85216 to
69bf6a8
Compare
69bf6a8 to
6f06572
Compare
6f06572 to
15252dd
Compare
Description
This PR adds logic to the Go Batch Submitter, allowing it to clear any pending transactions from the mempool that may have been left from a prior running instance. It does so by sending a 0-value tx to itself, and waiting until either the transaction confirms or a different transaction at the same nonce has confirmed. After ensuring that the mempool state is in a safe state to proceed, the batch submitter begins operation as before.
In addition, this PR begins the process of mocking out the L1 backend, in a way that can be reused across the project/packages. Continuing this approach will allow us to extensively test for behavior under network-level failures.
Metadata