diff --git a/parity/cli/config.full.toml b/parity/cli/config.full.toml index c0914de4c..5e6bc367a 100644 --- a/parity/cli/config.full.toml +++ b/parity/cli/config.full.toml @@ -95,7 +95,7 @@ refuse_service_transactions = false [footprint] tracing = "auto" pruning = "auto" -pruning_history = 1200 +pruning_history = 64 pruning_memory = 500 cache_size_db = 64 cache_size_blocks = 8 diff --git a/parity/cli/mod.rs b/parity/cli/mod.rs index 6e24f639d..7ac7f8c8d 100644 --- a/parity/cli/mod.rs +++ b/parity/cli/mod.rs @@ -251,9 +251,9 @@ usage! { or |c: &Config| otry!(c.footprint).tracing.clone(), flag_pruning: String = "auto", or |c: &Config| otry!(c.footprint).pruning.clone(), - flag_pruning_history: u64 = 1200u64, + flag_pruning_history: u64 = 64u64, or |c: &Config| otry!(c.footprint).pruning_history.clone(), - flag_pruning_memory: usize = 150usize, + flag_pruning_memory: usize = 75usize, or |c: &Config| otry!(c.footprint).pruning_memory.clone(), flag_cache_size_db: u32 = 64u32, or |c: &Config| otry!(c.footprint).cache_size_db.clone(), @@ -670,7 +670,7 @@ mod tests { // -- Footprint Options flag_tracing: "auto".into(), flag_pruning: "auto".into(), - flag_pruning_history: 1200u64, + flag_pruning_history: 64u64, flag_pruning_memory: 500usize, flag_cache_size_db: 64u32, flag_cache_size_blocks: 8u32, diff --git a/parity/configuration.rs b/parity/configuration.rs index c500f045a..349e57679 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -971,8 +971,8 @@ mod tests { file_path: Some("blockchain.json".into()), format: Default::default(), pruning: Default::default(), - pruning_history: 1200, - pruning_memory: 150, + pruning_history: 64, + pruning_memory: 75, compaction: Default::default(), wal: true, tracing: Default::default(), @@ -994,8 +994,8 @@ mod tests { dirs: Default::default(), file_path: Some("blockchain.json".into()), pruning: Default::default(), - pruning_history: 1200, - pruning_memory: 150, + pruning_history: 64, + pruning_memory: 75, format: Default::default(), compaction: Default::default(), wal: true, @@ -1017,8 +1017,8 @@ mod tests { dirs: Default::default(), file_path: Some("state.json".into()), pruning: Default::default(), - pruning_history: 1200, - pruning_memory: 150, + pruning_history: 64, + pruning_memory: 75, format: Default::default(), compaction: Default::default(), wal: true, @@ -1042,8 +1042,8 @@ mod tests { dirs: Default::default(), file_path: Some("blockchain.json".into()), pruning: Default::default(), - pruning_history: 1200, - pruning_memory: 150, + pruning_history: 64, + pruning_memory: 75, format: Some(DataFormat::Hex), compaction: Default::default(), wal: true, @@ -1078,8 +1078,8 @@ mod tests { dirs: Default::default(), spec: Default::default(), pruning: Default::default(), - pruning_history: 1200, - pruning_memory: 150, + pruning_history: 64, + pruning_memory: 75, daemon: None, logger_config: Default::default(), miner_options: Default::default(),