lower default pruning history and memory (#4528)

--pruning-history: 1200 -> 64
--pruning-memory: 150 -> 75
This commit is contained in:
Robert Habermeier
2017-02-13 17:15:25 +01:00
committed by Gav Wood
parent f1e99ea2e4
commit 073ed1a87c
3 changed files with 14 additions and 14 deletions

View File

@@ -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

View File

@@ -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,