-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
optimism: OpPayloadBuilder, specify PoolTransaction to OpPooledTransaction #14086
optimism: OpPayloadBuilder, specify PoolTransaction to OpPooledTransaction #14086
Conversation
87358f3
to
2b757a0
Compare
@@ -660,6 +669,90 @@ impl MockTransaction { | |||
} | |||
} | |||
|
|||
impl alloy_consensus::Typed2718 for MockTransaction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to implement Transaction
such that PayloadTransactionsChain
could operate on the MockTransaction type.
Need to update some of these stubbed out methods
lmk what you think about the changes to BestPayloadTransactions. If it's helpful, I can split those code changes from the secondary change to the OpPayloadBuilder |
@mattsse soft bump on this, seem to be getting more conflicts as time passes. Have a pending PR adding the conditional to the pooled struct and checking it in the payload builder |
Just saw the changes from #14249. In order for Can you let me know if this is directionally correct? Since this has a ton of conflicts now, i'll just start over from there. Would rather not do the work if there are more structural changes happening to these crates and there's a different approach in mind In the draft I had waiting on this, I see the
|
Lol now i see #14264 updates the Pooled tx type with the conditional. In order for the payload builder to reference this type. Going to again rebase this PR with the latest changes. @fgimenez are you also working on this? Please let me know so I dont waste my time |
I'm very sorry @hamdiallam, I dropped the ball here... need a bit to see what to do here |
I really don't mind if you have folks pick it up especially since it's a lot easier for you guys to mess around the type parameters in the right way. Can see where some of the same stuff I was trying to get working was broken mainly goal is just to get the feature implemented |
b0e066d
to
207be11
Compare
@fgimenez rebased this PRs. Have lint stuff to fix but I think some of the type bounds can be made cleaner through Also if it's straight forward, feel free to just take this and fix it up if that's faster for you, just lmk. From this, validating the conditional should be straight forward and a reference to the pool via the OpPayloadBuilderCtx allows for eviction without needing a pool wrapper |
@@ -785,7 +786,7 @@ impl<EvmConfig: ConfigureEvmEnv, N: NodePrimitives> OpPayloadBuilderCtx<EvmConfi | |||
impl<EvmConfig, N> OpPayloadBuilderCtx<EvmConfig, N> | |||
where | |||
EvmConfig: ConfigureEvmFor<N>, | |||
N: OpPayloadPrimitives, | |||
N: OpPayloadPrimitives<_TX = OpTransactionSigned>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for example, can we make SignedTx = OpTransactionSigned? Any reason this needs to be generic in OpPayloadPrimitives
superseded by #14280, thanks anyway @hamdiallam |
@mattsse what is going man? |
This is extremely unprofessional i'm no longer supporting this workstream. good luck |
TransactionPool::Transaction
toOpPooledTransaction
to OpPooledTransaction. This will allowexecute_best_transaction
to reference the conditional to then validatereth_optimism_transaction_pool
that pulls outtxpool.rs
so that there's no cyclical dep between payload <> nodeOpen Q: Should we update
OpPayloadPrimitives
/OpPrimitives
to hold type references for the Pool?