Skip to content

Commit

Permalink
Followup fix from MystenLabs#6926 (MystenLabs#6948)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Dec 20, 2022
1 parent b9ee1d2 commit 731eeb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/sui-core/src/epoch/committee_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ impl CommitteeStore {
if let Some(old_committee) = self.get_committee(&new_committee.epoch)? {
// If somehow we already have this committee in the store, they must be the same.
assert_eq!(&old_committee, new_committee);
} else {
self.committee_map
.insert(&new_committee.epoch, new_committee)?;
}
self.committee_map
.insert(&new_committee.epoch, new_committee)?;
Ok(())
}

Expand Down

0 comments on commit 731eeb6

Please sign in to comment.