lower default pruning history and memory (#4528)
--pruning-history: 1200 -> 64 --pruning-memory: 150 -> 75
This commit is contained in:
committed by
Gav Wood
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,
|
||||
|
||||
Reference in New Issue
Block a user