lower default pruning history and memory (#4528)
--pruning-history: 1200 -> 64 --pruning-memory: 150 -> 75
This commit is contained in:
parent
f1e99ea2e4
commit
073ed1a87c
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user