Skip to content

Commit

Permalink
refactor(cli_args): Increase default reorganization tolerance
Browse files Browse the repository at this point in the history
Increase the number of blocks that can be stored in memory from 100 to
1.000. This also affects the size of batch-responses, which *may* have
to be limited as a result of this commit.
  • Loading branch information
Sword-Smith committed Jan 15, 2025
1 parent 45cef88 commit e491b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_models/cli_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub struct Args {
/// The process running this program should have access to at least the number of blocks
/// in this field multiplied with the max block size amounts of RAM. Probably 1.5 to 2 times
/// that amount.
#[clap(long, default_value = "100", value_parser(RangedI64ValueParser::<usize>::new().range(2..100000)))]
#[clap(long, default_value = "1000", value_parser(RangedI64ValueParser::<usize>::new().range(2..100000)))]
pub(crate) max_number_of_blocks_before_syncing: usize,

/// IPs of nodes to connect to, e.g.: --peers 8.8.8.8:9798 --peers 8.8.4.4:1337.
Expand Down

0 comments on commit e491b2e

Please sign in to comment.