From 0574d06a4f1efd86e94c1214420a12e7a4be0099 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Mon, 6 Apr 2020 16:00:14 +0200 Subject: [PATCH] Update client/cli/src/params/pruning_params.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Bastian Köcher --- client/cli/src/params/pruning_params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cli/src/params/pruning_params.rs b/client/cli/src/params/pruning_params.rs index 84a37755cc761..d4979e4f45dad 100644 --- a/client/cli/src/params/pruning_params.rs +++ b/client/cli/src/params/pruning_params.rs @@ -42,7 +42,7 @@ impl PruningParams { // `ArchiveAll`), otherwise we keep state for the last 256 blocks. if the // node is an authority and pruning is enabled explicitly, then we error // unless `unsafe_pruning` is set. - Ok(match &self.pruning { + match &self.pruning { Some(ref s) if s == "archive" => PruningMode::ArchiveAll, None if role.is_network_authority() => PruningMode::ArchiveAll, None => PruningMode::default(),