From 06b27c2dde28c22277734506ec853c8a34520337 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 15 Dec 2024 19:03:00 +0000 Subject: [PATCH] use hokulea client --- Cargo.lock | 1 + Cargo.toml | 1 + bin/host/Cargo.toml | 1 + bin/host/src/lib.rs | 7 ++++--- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c884136..3971248 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1785,6 +1785,7 @@ dependencies = [ "async-trait", "clap", "eigenda-proof", + "hokulea-client", "kona-client", "kona-derive", "kona-host", diff --git a/Cargo.toml b/Cargo.toml index 0eb6810..b944b9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,6 +83,7 @@ revm = { version = "16.0.0", default-features = false } rocksdb = { version = "0.22.0", default-features = false } eigenda = { path = "crates/eigenda", version = "0.1.0", default-features = false } +hokulea-client = { path = "bin/client", version = "0.1.0", default-features = false } eigenda-proof = { path = "crates/proof", version = "0.1.0", default-features = false } [profile.dev] diff --git a/bin/host/Cargo.toml b/bin/host/Cargo.toml index 5c4a70b..56ccf3f 100644 --- a/bin/host/Cargo.toml +++ b/bin/host/Cargo.toml @@ -14,6 +14,7 @@ kona-client.workspace = true kona-host.workspace = true eigenda-proof.workspace = true +hokulea-client.workspace = true # Alloy alloy-rlp.workspace = true diff --git a/bin/host/src/lib.rs b/bin/host/src/lib.rs index 84482de..bf64ed3 100644 --- a/bin/host/src/lib.rs +++ b/bin/host/src/lib.rs @@ -14,6 +14,8 @@ use kona_host::kv; use kona_client; +use hokulea_client; + use crate::eigenda_blobs::OnlineEigenDABlobProvider; use anyhow::{anyhow, Result}; use fetcher::Fetcher; @@ -48,7 +50,7 @@ pub async fn start_server_and_native_client(cfg: HostCli) -> Result { ) .await .map_err(|e| anyhow!("Failed to load eigenda blob provider configuration: {e}"))?; - + info!(target: "host", "create fetch with eigenda_provider"); Some(Arc::new(RwLock::new(Fetcher::new( kv_store.clone(), l1_provider, @@ -72,10 +74,9 @@ pub async fn start_server_and_native_client(cfg: HostCli) -> Result { )); // Start the client program in a separate child process. - let program_task = task::spawn(kona_client::run( + let program_task = task::spawn(hokulea_client::run( OracleReader::new(preimage_chan.client), HintWriter::new(hint_chan.client), - None, )); // Execute both tasks and wait for them to complete.