Skip to content

Commit

Permalink
Fix: debug_proof (#44)
Browse files Browse the repository at this point in the history
* fix: fix debug_proof

* fix: fix clippy
  • Loading branch information
BC-A authored Oct 17, 2024
1 parent 00e4e61 commit e6620fc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -32,7 +32,6 @@ pub struct RunCmd {
// ignore_case = true,
// )]
// pub log_level: LogLevel,

/// The settlement layer to use.
#[arg(
long,
Expand Down
2 changes: 1 addition & 1 deletion src/config/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pub static GLOBAL_ENV: Lazy<GlobalEnv> = 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"),
});
2 changes: 1 addition & 1 deletion src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>;
Expand Down
3 changes: 1 addition & 2 deletions src/prover/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ pub struct ProverChannel {

//
// request_sender2: tokio::sync::broadcast::Sender<ProverRequest>,
/// final proof
// /// final proof
// final_proof_sender: Sender<Vec<u8>>,

/// used to stop the endpoint
stop_endpoint_tx: Sender<()>,
/// the address of the aggregator
Expand Down
4 changes: 3 additions & 1 deletion src/settlement/custom/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl CustomClient {
"batches": batches
});

println!("body: {:?}", body);
log::debug!("sequence_batches body: {:?}", body);

let response = self
.client
Expand Down Expand Up @@ -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()))
Expand Down

0 comments on commit e6620fc

Please sign in to comment.