Skip to content
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: add ethereum engine chain orchestrator #9241

Merged
merged 9 commits into from
Jul 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simpler pipeline for build test
fgimenez committed Jul 3, 2024
commit 207781b6ecf7ff9b7bdc8cb023a666fe1bda4acf
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/ethereum/engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -33,5 +33,3 @@ eyre.workspace = true

[dev-dependencies]
reth-engine-tree = { workspace = true, features = ["test-utils"] }
reth-primitives.workspace = true
reth-stages.workspace = true
13 changes: 2 additions & 11 deletions crates/ethereum/engine/src/orchestrator.rs
Original file line number Diff line number Diff line change
@@ -188,11 +188,8 @@ mod tests {
use reth_engine_tree::test_utils::TestPipelineBuilder;
use reth_ethereum_engine_primitives::EthEngineTypes;
use reth_network_p2p::test_utils::TestFullBlockClient;
use reth_primitives::BlockNumber;
use reth_stages::ExecOutput;
use reth_stages_api::StageCheckpoint;
use reth_tasks::TokioTaskExecutor;
use std::{collections::VecDeque, sync::Arc};
use std::sync::Arc;

#[test]
fn eth_chain_orchestrator_build() {
@@ -209,13 +206,7 @@ mod tests {
let (_tx, rx) = mpsc::unbounded_channel::<BeaconEngineMessage<EthEngineTypes>>();
let incoming_requests = UnboundedReceiverStream::new(rx);

const PIPELINE_DONE_AFTER: u64 = 5;
let pipeline = TestPipelineBuilder::new()
.with_pipeline_exec_outputs(VecDeque::from([Ok(ExecOutput {
checkpoint: StageCheckpoint::new(BlockNumber::from(PIPELINE_DONE_AFTER)),
done: true,
})]))
.build(chain_spec.clone());
let pipeline = TestPipelineBuilder::new().build(chain_spec.clone());
let pipeline_task_spawner = Box::<TokioTaskExecutor>::default();

let (to_tree_tx, _to_tree_rx) = mpsc::channel(32);