Skip to content

Commit

Permalink
Don't fail if removed committee doesn't exist. (linera-io#2799)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Fackler <[email protected]>
  • Loading branch information
2 people authored and ma2bd committed Nov 4, 2024
1 parent 038e60f commit e3db8d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions linera-execution/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3db8d0

Please sign in to comment.