Introduces a general abstraction, OptimismTxPoolPolicy that layers over the transaction pool and applied 3rdparty validation logic prior to txpool submission.
The only implementation of this abstraction with the txpool/policies package is for interop, the SuperchainMessagingPolicy. This policy maintains a connection to the superchain backend, implemented in ethereum-optimism/optimsim#9612 and checks for message safety of any executing interop message in the CrossL2Inbox predeploy address.
For now the policy only allows the for the passthrough of executing interop messages:
superchain backend doesn't mark the initiated message pointed to by the identifier as invalid
timestamp invariant holds
policy only allows for initiated messages that are finalized -- for now
Closes ethereum-optimism/optimism#10890
Introduces a general abstraction,
OptimismTxPoolPolicy
that layers over the transaction pool and applied 3rdparty validation logic prior to txpool submission.The only implementation of this abstraction with the
txpool/policies
package is for interop, theSuperchainMessagingPolicy
. This policy maintains a connection to the superchain backend, implemented inethereum-optimism/optimsim#9612
and checks for message safety of any executing interop message in the CrossL2Inbox predeploy address.For now the policy only allows the for the passthrough of executing interop messages: