Improve Execution trait ergonomics #5767
Labels
C-debt
Refactor of code section that is hard to understand or maintain
C-enhancement
New feature or request
S-needs-design
This issue requires design work to think about how it would best be accomplished
Describe the feature
currently the Executor trait takes the block and the recovered senders as different arguments:
reth/crates/storage/provider/src/traits/executor.rs
Lines 33 to 38 in a8e2518
this is easy to mess up, resulting in additional sender recovery.
Ideally, these functions should accept a single argument that can have multiple variants.
I think this type should be either a generic or an enum over the block variants.
Additional context
No response
The text was updated successfully, but these errors were encountered: