From 155fb97c8218d86195466a9f195598f11434a624 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Mon, 27 Mar 2023 12:17:15 +0200 Subject: [PATCH 1/2] Replace critical error to non critical When the computation of a multi-signature fails because the quorum is not reached. --- mithril-aggregator/src/runtime/state_machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril-aggregator/src/runtime/state_machine.rs b/mithril-aggregator/src/runtime/state_machine.rs index d4295e4d6e3..4fad7538389 100644 --- a/mithril-aggregator/src/runtime/state_machine.rs +++ b/mithril-aggregator/src/runtime/state_machine.rs @@ -271,7 +271,7 @@ impl AggregatorRuntime { let multi_signature = self.runner.create_multi_signature().await?; let multi_signature = if multi_signature.is_none() { - return Err(RuntimeError::Critical { + return Err(RuntimeError::KeepState { message: "not enough signature yet to aggregate a multi-signature, waiting…" .to_string(), nested_error: None, From e6d18aefdd5453ee335c67e2f3021efd4bdd053c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Raynaud Date: Mon, 27 Mar 2023 12:17:51 +0200 Subject: [PATCH 2/2] Bump aggregator version --- Cargo.lock | 2 +- mithril-aggregator/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ed6e52e8be..58efefb6efe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2027,7 +2027,7 @@ dependencies = [ [[package]] name = "mithril-aggregator" -version = "0.2.37" +version = "0.2.38" dependencies = [ "async-trait", "chrono", diff --git a/mithril-aggregator/Cargo.toml b/mithril-aggregator/Cargo.toml index 485a5f20aa1..369f6ae60e8 100644 --- a/mithril-aggregator/Cargo.toml +++ b/mithril-aggregator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mithril-aggregator" -version = "0.2.37" +version = "0.2.38" description = "A Mithril Aggregator server" authors = { workspace = true } edition = { workspace = true }