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

use hokulea client #2

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions bin/host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions bin/host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -48,7 +50,7 @@ pub async fn start_server_and_native_client(cfg: HostCli) -> Result<i32> {
)
.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,
Expand All @@ -72,10 +74,9 @@ pub async fn start_server_and_native_client(cfg: HostCli) -> Result<i32> {
));

// 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.
Expand Down