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

Batcher: support the txmgr.TxManager interface rather than SimpleTxManager implementation #12040

Merged

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Sep 21, 2024

Description

Replace the *txmgr.SimpleTxManager in the batcher driver setup with the txmgr.TxManager interface. This allows more flexibility in the TxManager implementation.

This was changed in #10941 for testing purposes; there's no particular reason the batcher needs the SimpleTxManager implementation.

Tests

Updated tests.

Additional context

I'm working on a separate batcher implementation for L3s that uses a different TxManager.

@mdehoog mdehoog requested review from a team as code owners September 21, 2024 07:02
@mdehoog mdehoog requested a review from sebastianst September 21, 2024 07:02
Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.87%. Comparing base (0543bf7) to head (f418adf).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12040      +/-   ##
===========================================
- Coverage    79.10%   78.87%   -0.24%     
===========================================
  Files           41       41              
  Lines         3437     3437              
===========================================
- Hits          2719     2711       -8     
- Misses         548      557       +9     
+ Partials       170      169       -1     
Flag Coverage Δ
cannon-go-tests 78.87% <ø> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@mdehoog mdehoog marked this pull request as draft September 21, 2024 07:20
@mdehoog mdehoog force-pushed the michael/tx-manager-interface branch from 9056ba1 to d8c775a Compare September 21, 2024 07:47
@mdehoog mdehoog force-pushed the michael/tx-manager-interface branch from d8c775a to f418adf Compare September 21, 2024 07:49
@mdehoog mdehoog marked this pull request as ready for review September 21, 2024 08:03
@mdehoog mdehoog requested a review from a team as a code owner September 21, 2024 08:03
@mdehoog mdehoog requested a review from clabby September 21, 2024 08:03
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ajsutton ajsutton added this pull request to the merge queue Sep 22, 2024
Merged via the queue into ethereum-optimism:develop with commit de7f8d9 Sep 22, 2024
61 checks passed
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