diff --git a/bin/odyssey/src/main.rs b/bin/odyssey/src/main.rs index e20ee82..ea3e031 100644 --- a/bin/odyssey/src/main.rs +++ b/bin/odyssey/src/main.rs @@ -61,7 +61,7 @@ fn main() { .as_ref() .map(>::default_signer_address); - let node = builder + let handle = builder .with_types_and_provider::>() .with_components(OdysseyNode::components(&rollup_args)) .with_add_ons( @@ -126,12 +126,12 @@ fn main() { .await?; // spawn raw transaction forwarding - let txhandle = node.node.network.transactions_handle().await.unwrap(); + let txhandle = handle.node.network.transactions_handle().await.unwrap(); let raw_txs = - node.node.add_ons_handle.eth_api().eth_api().subscribe_to_raw_transactions(); - node.node.task_executor.spawn(Box::pin(forward_raw_transactions(txhandle, raw_txs))); + handle.node.add_ons_handle.eth_api().eth_api().subscribe_to_raw_transactions(); + handle.node.task_executor.spawn(Box::pin(forward_raw_transactions(txhandle, raw_txs))); - node.wait_for_node_exit().await + handle.wait_for_node_exit().await }) { eprintln!("Error: {err:?}");