From e6620fccbcc5d9dd9b8b698ba1e1b993dd574cee Mon Sep 17 00:00:00 2001 From: BC-A <101916801+BC-A@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:48:48 +0800 Subject: [PATCH] Fix: debug_proof (#44) * fix: fix debug_proof * fix: fix clippy --- src/commands/run.rs | 3 +-- src/config/env.rs | 2 +- src/db/mod.rs | 2 +- src/prover/provider.rs | 3 +-- src/settlement/custom/methods.rs | 4 +++- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/run.rs b/src/commands/run.rs index c2e28a4..50776c2 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -23,7 +23,7 @@ pub struct RunCmd { #[clap(flatten)] // pub reth_cmd: NodeCommand, pub reth_cmd: RethCmd, - /// The log level of the node. + // /// The log level of the node. // #[arg( // long, // value_name = "LOG_LEVEL", @@ -32,7 +32,6 @@ pub struct RunCmd { // ignore_case = true, // )] // pub log_level: LogLevel, - /// The settlement layer to use. #[arg( long, diff --git a/src/config/env.rs b/src/config/env.rs index 92f01e9..d00fa3d 100644 --- a/src/config/env.rs +++ b/src/config/env.rs @@ -31,5 +31,5 @@ pub static GLOBAL_ENV: Lazy = Lazy::new(|| GlobalEnv { .unwrap_or("http://localhost:8001".to_string()), debug_proof: std::env::var("DEBUG_PROOF") .unwrap_or_else(|_| String::from("FALSE")) - .eq_ignore_ascii_case("FALSE"), + .eq_ignore_ascii_case("TRUE"), }); diff --git a/src/db/mod.rs b/src/db/mod.rs index 6c9e0e5..4cba70f 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -7,7 +7,7 @@ use serde::Deserialize; mod data_availability_db; pub(crate) mod lfs; -/// TODO: we need a trait to abstract the database operations in order to support multiple databases +// TODO: we need a trait to abstract the database operations in order to support multiple databases pub trait Database: Send + Sync { fn get(&self, key: &[u8]) -> Option>; diff --git a/src/prover/provider.rs b/src/prover/provider.rs index 32af6ad..44f7e36 100644 --- a/src/prover/provider.rs +++ b/src/prover/provider.rs @@ -50,9 +50,8 @@ pub struct ProverChannel { // // request_sender2: tokio::sync::broadcast::Sender, - /// final proof + // /// final proof // final_proof_sender: Sender>, - /// used to stop the endpoint stop_endpoint_tx: Sender<()>, /// the address of the aggregator diff --git a/src/settlement/custom/methods.rs b/src/settlement/custom/methods.rs index 42f74a4..01cbc51 100644 --- a/src/settlement/custom/methods.rs +++ b/src/settlement/custom/methods.rs @@ -357,7 +357,7 @@ impl CustomClient { "batches": batches }); - println!("body: {:?}", body); + log::debug!("sequence_batches body: {:?}", body); let response = self .client @@ -419,6 +419,8 @@ impl CustomClient { "input": input }); + log::debug!("verify_batches body: {:?}", body); + let response = self .client .post(format!("{}/verify-batches", self.url.clone()))