-
Notifications
You must be signed in to change notification settings - Fork 2.4k
use prepared Txenv for flashblocks #18181
Copy link
Copy link
Closed
Labels
A-op-rethRelated to Optimism and op-rethRelated to Optimism and op-rethC-enhancementNew feature or requestNew feature or requestC-perfA change motivated by improving speed, memory usage or disk footprintA change motivated by improving speed, memory usage or disk footprint
Milestone
Metadata
Metadata
Assignees
Labels
A-op-rethRelated to Optimism and op-rethRelated to Optimism and op-rethC-enhancementNew feature or requestNew feature or requestC-perfA change motivated by improving speed, memory usage or disk footprintA change motivated by improving speed, memory usage or disk footprint
Type
Projects
Status
Done
Describe the feature
we currently do:
reth/crates/optimism/flashblocks/src/service.rs
Lines 149 to 154 in 3ad9743
for the entire block on every new flashblock, this is wasteful work and we can cache this in
reth/crates/optimism/flashblocks/src/service.rs
Line 39 in 3ad9743
instead.
we can either prepare this when we push
reth/crates/optimism/flashblocks/src/service.rs
Line 85 in 3ad9743
or lazily
on push is probably more efficient because then it's already prepared
TODO
txs: WithEnoceded<Recovered<N::SignedTx>as wellAdditional context
blocked by #18183