From e3db8d0125ddd7793cdc0f0f5b423b4a95ac1399 Mon Sep 17 00:00:00 2001 From: Janito Vaqueiro Ferreira Filho Date: Sat, 2 Nov 2024 18:45:42 +0000 Subject: [PATCH] Don't fail if removed committee doesn't exist. (#2799) Co-authored-by: Andreas Fackler --- linera-execution/src/system.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/linera-execution/src/system.rs b/linera-execution/src/system.rs index 8ec949e3daa..61ac1254cf8 100644 --- a/linera-execution/src/system.rs +++ b/linera-execution/src/system.rs @@ -806,10 +806,7 @@ where } } RemoveCommittee { epoch } => { - ensure!( - self.committees.get_mut().remove(&epoch).is_some(), - SystemExecutionError::InvalidCommitteeRemoval - ); + self.committees.get_mut().remove(&epoch); } RegisterApplications { applications } => { for application in applications {