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] [footprint]
tracing = "auto" tracing = "auto"
pruning = "auto" pruning = "auto"
pruning_history = 1200 pruning_history = 64
pruning_memory = 500 pruning_memory = 500
cache_size_db = 64 cache_size_db = 64
cache_size_blocks = 8 cache_size_blocks = 8

View File

@ -251,9 +251,9 @@ usage! {
or |c: &Config| otry!(c.footprint).tracing.clone(), or |c: &Config| otry!(c.footprint).tracing.clone(),
flag_pruning: String = "auto", flag_pruning: String = "auto",
or |c: &Config| otry!(c.footprint).pruning.clone(), 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(), 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(), or |c: &Config| otry!(c.footprint).pruning_memory.clone(),
flag_cache_size_db: u32 = 64u32, flag_cache_size_db: u32 = 64u32,
or |c: &Config| otry!(c.footprint).cache_size_db.clone(), or |c: &Config| otry!(c.footprint).cache_size_db.clone(),
@ -670,7 +670,7 @@ mod tests {
// -- Footprint Options // -- Footprint Options
flag_tracing: "auto".into(), flag_tracing: "auto".into(),
flag_pruning: "auto".into(), flag_pruning: "auto".into(),
flag_pruning_history: 1200u64, flag_pruning_history: 64u64,
flag_pruning_memory: 500usize, flag_pruning_memory: 500usize,
flag_cache_size_db: 64u32, flag_cache_size_db: 64u32,
flag_cache_size_blocks: 8u32, flag_cache_size_blocks: 8u32,

View File

@ -971,8 +971,8 @@ mod tests {
file_path: Some("blockchain.json".into()), file_path: Some("blockchain.json".into()),
format: Default::default(), format: Default::default(),
pruning: Default::default(), pruning: Default::default(),
pruning_history: 1200, pruning_history: 64,
pruning_memory: 150, pruning_memory: 75,
compaction: Default::default(), compaction: Default::default(),
wal: true, wal: true,
tracing: Default::default(), tracing: Default::default(),
@ -994,8 +994,8 @@ mod tests {
dirs: Default::default(), dirs: Default::default(),
file_path: Some("blockchain.json".into()), file_path: Some("blockchain.json".into()),
pruning: Default::default(), pruning: Default::default(),
pruning_history: 1200, pruning_history: 64,
pruning_memory: 150, pruning_memory: 75,
format: Default::default(), format: Default::default(),
compaction: Default::default(), compaction: Default::default(),
wal: true, wal: true,
@ -1017,8 +1017,8 @@ mod tests {
dirs: Default::default(), dirs: Default::default(),
file_path: Some("state.json".into()), file_path: Some("state.json".into()),
pruning: Default::default(), pruning: Default::default(),
pruning_history: 1200, pruning_history: 64,
pruning_memory: 150, pruning_memory: 75,
format: Default::default(), format: Default::default(),
compaction: Default::default(), compaction: Default::default(),
wal: true, wal: true,
@ -1042,8 +1042,8 @@ mod tests {
dirs: Default::default(), dirs: Default::default(),
file_path: Some("blockchain.json".into()), file_path: Some("blockchain.json".into()),
pruning: Default::default(), pruning: Default::default(),
pruning_history: 1200, pruning_history: 64,
pruning_memory: 150, pruning_memory: 75,
format: Some(DataFormat::Hex), format: Some(DataFormat::Hex),
compaction: Default::default(), compaction: Default::default(),
wal: true, wal: true,
@ -1078,8 +1078,8 @@ mod tests {
dirs: Default::default(), dirs: Default::default(),
spec: Default::default(), spec: Default::default(),
pruning: Default::default(), pruning: Default::default(),
pruning_history: 1200, pruning_history: 64,
pruning_memory: 150, pruning_memory: 75,
daemon: None, daemon: None,
logger_config: Default::default(), logger_config: Default::default(),
miner_options: Default::default(), miner_options: Default::default(),