-
Notifications
You must be signed in to change notification settings - Fork 62
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: forward txns over p2p #116
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.
LGTM.
bin/odyssey/src/main.rs
Outdated
// spawn raw transaction forwarding | ||
let txhandle = node.node.network.transactions_handle().await.unwrap(); | ||
let raw_txs = | ||
node.node.add_ons_handle.eth_api().eth_api().subscribe_to_raw_transactions(); |
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.
eth_api().eth_api()
we should fix
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.
not unless we want to replace the wrapped OpEthApi(EthApi)
with actually impls for OpEthApi, but I guess we could rename this fn instead
bin/odyssey/src/main.rs
Outdated
@@ -124,6 +125,12 @@ fn main() { | |||
}) | |||
.await?; | |||
|
|||
// spawn raw transaction forwarding | |||
let txhandle = node.node.network.transactions_handle().await.unwrap(); |
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.
wish we coudl get rid of node.node
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.
can rename the variable
this adds sequencer forwarding if the transaction was received via eth_sendrawtransaction