Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove generic from stake table #2383

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

imabdulbasit
Copy link
Contributor

No description provided.

.iter()
.map(|entry| (TYPES::SignatureKey::public_key(entry), entry.clone()))
.collect();
let indexed_stake_table: BTreeMap<PubKey, SeqStakeTableEntry> = members
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for all containers here we can do leave the item type(s) as _ now.

NonZeroU64::new(max(
(self.stake_table.len() as u64 * 9) / 10,
((self.stake_table.len() as u64 * 2) / 3) + 1,
))
.unwrap()
}
}

type Epoch = <SeqTypes as NodeType>::Epoch;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to top?

@imabdulbasit imabdulbasit merged commit f1b2799 into tb/pos/fetch-stake-table2 Dec 10, 2024
14 of 23 checks passed
@imabdulbasit imabdulbasit deleted the ab/remove-st-generics branch December 10, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants