Skip to content

Commit

Permalink
".git/.scripts/commands/fmt/fmt.sh"
Browse files Browse the repository at this point in the history
  • Loading branch information
command-bot committed Nov 18, 2024
1 parent 5c3e52a commit 2c9721e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions polkadot/statement-table/src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ impl<Ctx: Context> CandidateData<Ctx> {
pub fn attested(
&self,
validity_threshold: usize,
) -> Option<AttestedCandidate<Ctx::GroupId, Ctx::Candidate, Ctx::AuthorityId, Ctx::Signature>> {
) -> Option<AttestedCandidate<Ctx::GroupId, Ctx::Candidate, Ctx::AuthorityId, Ctx::Signature>>
{
let valid_votes = self.validity_votes.len();
if valid_votes < validity_threshold {
return None
Expand Down Expand Up @@ -321,7 +322,8 @@ impl<Ctx: Context> Table<Ctx> {
digest: &Ctx::Digest,
context: &Ctx,
minimum_backing_votes: u32,
) -> Option<AttestedCandidate<Ctx::GroupId, Ctx::Candidate, Ctx::AuthorityId, Ctx::Signature>> {
) -> Option<AttestedCandidate<Ctx::GroupId, Ctx::Candidate, Ctx::AuthorityId, Ctx::Signature>>
{
self.candidate_votes.get(digest).and_then(|data| {
let v_threshold = context.get_group_size(&data.group_id).map_or(usize::MAX, |len| {
effective_minimum_backing_votes(len, minimum_backing_votes)
Expand Down

0 comments on commit 2c9721e

Please sign in to comment.