From 306315e3e5eaf3209076fde8c0801465ccca8433 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 19 May 2016 10:03:45 +0200 Subject: [PATCH 1/2] Default to archive mode. --- parity/configuration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parity/configuration.rs b/parity/configuration.rs index fe9a7131b..d4d9af22a 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -225,7 +225,7 @@ impl Configuration { "light" => journaldb::Algorithm::EarlyMerge, "fast" => journaldb::Algorithm::OverlayRecent, "basic" => journaldb::Algorithm::RefCounted, - "auto" => self.find_best_db(spec).unwrap_or(journaldb::Algorithm::OverlayRecent), + "auto" => self.find_best_db(spec).unwrap_or(journaldb::Algorithm::Archive), _ => { die!("Invalid pruning method given."); } }; From bfdbff5ac72a054e3cc8a2bbe632b359d8391bf2 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 19 May 2016 11:40:43 +0200 Subject: [PATCH 2/2] basic pruning method still experimental. --- parity/cli.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/parity/cli.rs b/parity/cli.rs index a33e53aeb..05f991239 100644 --- a/parity/cli.rs +++ b/parity/cli.rs @@ -122,12 +122,13 @@ Footprint Options: auto uses last used value of this option (off if it does not exist) [default: auto]. --pruning METHOD Configure pruning of the state/storage trie. METHOD - may be one of auto, archive, basic, fast, light: + may be one of auto, archive, fast, basic, light: archive - keep all state trie data. No pruning. - basic - reference count in disk DB. Slow but light. fast - maintain journal overlay. Fast but 50MB used. - light - early merges with partial tracking. Fast - and light. Experimental! + basic - reference count in disk DB. Slow, light, and + experimental! + light - early merges with partial tracking. Fast, + light, and experimental! auto - use the method most recently synced or default to archive if none synced [default: auto]. --cache-pref-size BYTES Specify the prefered size of the blockchain cache in