-
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
feat(op, txpool): impl send_raw_tx_cond endpoint #14311
Conversation
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.
good start,
the state validation stuff we can do later.
a few suggestions
039ee6c
to
69661e8
Compare
9b28846
to
cd2d120
Compare
4b9ce95
to
fb1cedf
Compare
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.
this lgtm
we can add support for submitting the tx with conditional into the pool as followup
crates/optimism/rpc/src/eth/ext.rs
Outdated
// otherwise, add to pool | ||
let hash = self.pool().add_transaction(TransactionOrigin::External, tx).await.map_err( | ||
|e| OpEthApiError::Eth(reth_rpc_eth_types::EthApiError::PoolError(e.into())), | ||
)?; |
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.
I don't think we can submit it like this, because this now removes the conditional?
let's say this is the sequencer instance, then this now simply inserts the tx as regular tx?
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.
yep exactly, added todo comment
Towards #14194