From 6c207e8f4a59216e174c51f46658d41c19fddd55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keszey=20D=C3=A1niel?= Date: Fri, 8 Nov 2024 21:22:21 +0100 Subject: [PATCH] dummy-builder builds --- crates/rbuilder/src/bin/dummy-builder.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/rbuilder/src/bin/dummy-builder.rs b/crates/rbuilder/src/bin/dummy-builder.rs index 20b02e76..8b829b6b 100644 --- a/crates/rbuilder/src/bin/dummy-builder.rs +++ b/crates/rbuilder/src/bin/dummy-builder.rs @@ -87,7 +87,7 @@ async fn main() -> eyre::Result<()> { DEFAULT_INPUT_CHANNEL_BUFFER_SIZE, ), chain_chain_spec: chain_spec.clone(), - provider: create_provider_factory( + provider_factory: create_provider_factory( Some(&RETH_DB_PATH.parse::().unwrap()), None, None, @@ -101,7 +101,12 @@ async fn main() -> eyre::Result<()> { sink_factory: Box::new(TraceBlockSinkFactory {}), builders: vec![Arc::new(DummyBuildingAlgorithm::new(10))], run_sparse_trie_prefetcher: false, - layer2_info: Layer2Info::new(vec![], HashMap::default()).await?, + layer2_info: Layer2Info::new(vec![], create_provider_factory( + Some(&RETH_DB_PATH.parse::().unwrap()), + None, + None, + chain_spec.clone(), + )?).await?, }; let ctrlc = tokio::spawn(async move { @@ -236,7 +241,7 @@ where fn build_blocks(&self, input: BlockBuildingAlgorithmInput

) { if let Some(orders) = self.wait_for_orders(&input.cancel, input.input) { let block = self - .build_block(orders, input.provider, &input.ctx) + .build_block(orders, input.provider_factory, &input.ctx) .unwrap(); input.sink.new_block(block); }