Skip to content

Commit

Permalink
Verify validator in optimistic_verify (#15371)
Browse files Browse the repository at this point in the history
  • Loading branch information
vusirikala authored Nov 22, 2024
1 parent d672085 commit 32e222b
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 32e222b

Please sign in to comment.