Skip to content

Commit

Permalink
fix: conficts
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jul 23, 2024
1 parent d4b10d4 commit 098fe75
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions zero_bin/prover/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
use clap::Args;

const HELP_HEADING: &str = "Prover options";

/// Represents the main configuration structure for the runtime.
#[derive(Args, Clone, PartialEq, Eq, PartialOrd, Ord, Debug, Default)]
pub struct CliProverConfig {
/// The log of the max number of CPU cycles per proof.
#[arg(short, long, default_value_t = 20)]
#[arg(short, long, help_heading = HELP_HEADING, default_value_t = 20)]
max_cpu_len_log: usize,
/// Number of transactions in a batch to process at once
#[arg(short, long, default_value_t = 1)]
#[arg(short, long, help_heading = HELP_HEADING, default_value_t = 1)]
batch_size: usize,
/// Number of segments to keep in memory and prove in parallel
#[arg(long, default_value_t = 64)]
#[arg(short='c', long, help_heading = HELP_HEADING, default_value_t = 64)]
segment_chunk_size: usize,
/// If true, save the public inputs to disk on error.
#[arg(short, long, default_value_t = false)]
#[arg(short='i', long, help_heading = HELP_HEADING, default_value_t = false)]
save_inputs_on_error: bool,
}

Expand Down

0 comments on commit 098fe75

Please sign in to comment.