Wrap BlobTransactionSideCar in Arcs in txpool #11460
Labels
A-tx-pool
Related to the transaction mempool
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
currently, we're cloning the sidecar in various places, which is pretty expensive, we also never modify these so we really should pass that around as an Arc.
this is pretty common and we should actually add a helper type like
SharedBlobTransactionSidecar(Arc<BlobTransactionSidecar>)
to alloy directly.TODO
since this type is very simple, this can also added to reth so we don't need to wait until it lands in alloy.
e.g:
reth/crates/transaction-pool/src/traits.rs
Lines 405 to 408 in ac85fc0
Additional context
No response
The text was updated successfully, but these errors were encountered: