Skip to content

Commit

Permalink
Verify validator in optimistic_verify
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala committed Nov 22, 2024
1 parent 893ee58 commit e51376b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/src/validator_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ impl ValidatorVerifier {
message: &T,
signature_with_status: &SignatureWithStatus,
) -> std::result::Result<(), VerifyError> {
if self.get_public_key(&author).is_none() {
return Err(VerifyError::UnknownAuthor);
}
if (!self.optimistic_sig_verification || self.pessimistic_verify_set.contains(&author))
&& !signature_with_status.is_verified()
{
Expand Down

0 comments on commit e51376b

Please sign in to comment.