Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

VRF refactory #13889

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update client/consensus/babe/src/verification.rs
Co-authored-by: Koute <koute@users.noreply.github.com>
  • Loading branch information
davxy and koute authored Apr 18, 2023
commit bcab714cb99e8f60a3ca63e3d59ba797754332ac
2 changes: 1 addition & 1 deletion client/consensus/babe/src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fn check_primary_header<B: BlockT + Sized>(
.map(u128::from_le_bytes)
.map_err(|_| babe_err(Error::VrfVerificationFailed))?;

if threshold <= score {
if score >= threshold {
return Err(babe_err(Error::VrfThresholdExceeded(threshold)))
}

Expand Down