Update overlay.rs

This commit is contained in:
Al Liu 2024-03-21 11:02:32 +08:00
parent 67367be149
commit 50cb9930ae
No known key found for this signature in database
GPG Key ID: C8AE9A6E0166923E
1 changed files with 2 additions and 6 deletions

View File

@ -146,14 +146,10 @@ where
if self.is_member_of_leaf_committee(id) {
return 0;
}
match self
.carnot_tree
self.carnot_tree
.committee_by_member_id(&id)
.map(|c| apply_threshold(c.len(), self.threshold))
{
Some(threshold) => threshold,
None => panic!("node {id} is not part of any committee"),
}
.expect("node is not part of any committee")
}
// TODO: Carnot node in sim does not send votes to the next leader from the child committee of