Skip to content

Commit efaa0dd

Browse files
committed
Use correct validation threshold.
Thanks to @lukeiannucci for spotting this!
1 parent bc43014 commit efaa0dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timeboost-types/src/block.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ impl CertifiedBlock<Unchecked> {
241241
pub fn validated(self, c: &Committee) -> Option<CertifiedBlock<Validated>> {
242242
if self.data.round == self.cert.data().round.num()
243243
&& self.data.hash() == self.cert.data().hash
244-
&& self.cert.is_valid_par(c)
244+
&& self
245+
.cert
246+
.is_valid_with_threshold_par(c, c.one_honest_threshold())
245247
{
246248
Some(CertifiedBlock {
247249
data: self.data,

0 commit comments

Comments
 (0)