update txmgr to support sending blob txs#8760
update txmgr to support sending blob txs#8760sebastianst merged 1 commit intoethereum-optimism:developfrom
Conversation
6106b9a to
674147d
Compare
WalkthroughWalkthroughThe changes across various files in the transaction manager service primarily integrate support for blob transactions, adjusting fee calculations, and modifying function calls to accommodate new parameters. These updates reflect an adaptation to a new transaction type and its associated fee structures, impacting how transactions are crafted, signed, and managed within the system. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit's AI:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
5454a71 to
c321bff
Compare
c321bff to
3dabef5
Compare
sebastianst
left a comment
There was a problem hiding this comment.
Generally LGTM! A few remarks about additional tests or improvements to tests, especially around blob fees.
97c5e09 to
15da35e
Compare
15da35e to
4253821
Compare
75256fd to
8229c17
Compare
71d60a3 to
0e07f44
Compare
Discussed with Roberto that we're gonna add a craftTx test for blob txs. We don't test these yet.
4902e0b to
dce8f30
Compare
|
craftTx test for blob tx added |
dce8f30 to
9804bc8
Compare
sebastianst
left a comment
There was a problem hiding this comment.
LGTM, thanks for adding that test @roberto-bayardo!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8760 +/- ##
===========================================
- Coverage 34.85% 34.81% -0.05%
===========================================
Files 165 165
Lines 7106 7106
Branches 1198 1198
===========================================
- Hits 2477 2474 -3
- Misses 4477 4482 +5
+ Partials 152 150 -2
Flags with carried forward coverage won't be shown. Click here to find out more. |
Description
This PR extends TxManager to send Blob transactions instead of DynamicFeeTransactions whenever the transaction candidate passed in by the caller contains Blobs. It creates the Blob sidecars as appropriate, and implements the special fee bumping logic for blob transactions expected by standard implementations like geth.
Tests
Added unit test to confirm the new fee bumping logic for blob transactions work as expected and that receipts for mined blob transactions are generated with expected fields.