Skip to content

Commit

Permalink
spell good
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Oct 31, 2024
1 parent 45ebedc commit c9c334d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions types/src/v0/impls/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl<TYPES: NodeType> StakeCommittee<TYPES> {
// TODO remove `new` from trait and rename this to `new`.
// https://github.com/EspressoSystems/HotShot/commit/fcb7d54a4443e29d643b3bbc53761856aef4de8b
eligible_leaders: Vec<PeerConfig<<TYPES as NodeType>::SignatureKey>>,
commitee_members: Vec<PeerConfig<<TYPES as NodeType>::SignatureKey>>,
committee_members: Vec<PeerConfig<<TYPES as NodeType>::SignatureKey>>,
committee_topic: Topic,
instance_state: &NodeState,
epoch_size: u64,
Expand All @@ -70,11 +70,12 @@ impl<TYPES: NodeType> StakeCommittee<TYPES> {
.collect();

// For each member, get the stake table entry
let members: Vec<<TYPES::SignatureKey as SignatureKey>::StakeTableEntry> = commitee_members
.iter()
.map(|member| member.stake_table_entry.clone())
.filter(|entry| entry.stake() > U256::zero())
.collect();
let members: Vec<<TYPES::SignatureKey as SignatureKey>::StakeTableEntry> =
committee_members
.iter()
.map(|member| member.stake_table_entry.clone())
.filter(|entry| entry.stake() > U256::zero())
.collect();

// Index the stake table by public key
let indexed_stake_table: BTreeMap<
Expand Down

0 comments on commit c9c334d

Please sign in to comment.