Skip to content

Commit

Permalink
docs: Add comment about allowed minimum value for sync-threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Sword-Smith committed Jan 29, 2025
1 parent fa3dc86 commit 68b6264
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config_models/cli_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ pub struct Args {
/// least the number of blocks set by this argument multiplied with the max
/// block size (around 2 MB). Probably 1.5 to 2 times that amount for good
/// margin.
// Notice that the minimum value here may not be less than
// [SYNC_CHALLENGE_POW_WITNESS_LENGTH](crate::models::peer::SYNC_CHALLENGE_POW_WITNESS_LENGTH)
// as that would prevent going into sync mode.
#[clap(long, default_value = "1000", value_parser(RangedI64ValueParser::<usize>::new().range(10..100000)))]
pub(crate) sync_mode_threshold: usize,

Expand Down

0 comments on commit 68b6264

Please sign in to comment.