Skip to content

Commit

Permalink
Avoid calling threshold through THRESHOLD trait
Browse files Browse the repository at this point in the history
Not sure if this is good enough for all cases, but it fixes `test_da_task`
  • Loading branch information
tbro committed Nov 19, 2024
1 parent 0368dc6 commit dbd49cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/types/src/simple_certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl<TYPES: NodeType, THRESHOLD: Threshold<TYPES>> Certificate<TYPES, DaData>
membership.da_total_nodes(epoch)
}
fn threshold<MEMBERSHIP: Membership<TYPES>>(membership: &MEMBERSHIP) -> u64 {
THRESHOLD::threshold(membership)
membership.da_success_threshold().into()
}
fn data(&self) -> &Self::Voteable {
&self.data
Expand Down Expand Up @@ -257,7 +257,7 @@ impl<TYPES: NodeType, VOTEABLE: Voteable + 'static + QuorumMaker, THRESHOLD: Thr
)
}
fn threshold<MEMBERSHIP: Membership<TYPES>>(membership: &MEMBERSHIP) -> u64 {
Self::Threshold::threshold(membership)
THRESHOLD::threshold(membership)
}

fn stake_table_entry<MEMBERSHIP: Membership<TYPES>>(
Expand Down

0 comments on commit dbd49cf

Please sign in to comment.