From 7986ed02a0a651e0e8a02f5333c663c85d413a46 Mon Sep 17 00:00:00 2001 From: Giacomo Pasini Date: Thu, 24 Apr 2025 12:37:36 +0200 Subject: [PATCH] fix --- sz-poc-offsite-2025/evm/lightnode/src/main.rs | 7 +++---- sz-poc-offsite-2025/evm/prover/src/main.rs | 8 +++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sz-poc-offsite-2025/evm/lightnode/src/main.rs b/sz-poc-offsite-2025/evm/lightnode/src/main.rs index 88303a2..0b907c2 100644 --- a/sz-poc-offsite-2025/evm/lightnode/src/main.rs +++ b/sz-poc-offsite-2025/evm/lightnode/src/main.rs @@ -1,13 +1,10 @@ use clap::Parser; -use evm_lightnode::{Credentials, NomosClient, nomos::HeaderId, proofcheck}; -use tracing::info; +use evm_lightnode::proofcheck; use url::Url; use std::path::PathBuf; use std::error; use tracing_subscriber::{EnvFilter, fmt}; -const TESTNET_EXECUTOR: &str = "https://testnet.nomos.tech/node/3/"; - #[derive(Parser, Debug)] #[clap(author, version, about = "Light Node validator")] struct Args { @@ -46,4 +43,6 @@ async fn main() -> Result<(), Box> { &args.prover_url, &args.zeth_binary_dir.unwrap_or_else(|| std::env::current_dir().unwrap()).join("zeth-ethereum"), ).await?; + + Ok(()) } diff --git a/sz-poc-offsite-2025/evm/prover/src/main.rs b/sz-poc-offsite-2025/evm/prover/src/main.rs index 3faf124..e3c353f 100644 --- a/sz-poc-offsite-2025/evm/prover/src/main.rs +++ b/sz-poc-offsite-2025/evm/prover/src/main.rs @@ -1,9 +1,15 @@ use clap::Parser; use reqwest::blocking::Client; use serde_json::{json, Value}; -use std::{path::PathBuf, process::Command, thread, time::Duration}; +use std::{path::PathBuf, process::Command, thread, time::Duration, net::SocketAddr}; use tracing::{debug, error, info}; use tracing_subscriber::{fmt, EnvFilter}; +use axum::{ + routing::get, + Router, +}; + +mod http; #[derive(Parser, Debug)] #[clap(author, version, about = "Ethereum Proof Generation Tool")]