Fix comment in attestation_validation

This commit is contained in:
Paul Hauner 2018-10-15 15:08:43 +11:00
parent e8daca4c80
commit e289d8b5fd
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -102,8 +102,8 @@ impl<T> AttestationValidationContext<T>
} }
/* /*
* The attestation must indicate that its last justified slot is the same as the last justified * The attestation justified slot must not be higher than the last_justified_slot of the
* slot known to us. * context.
*/ */
if a.justified_slot > self.last_justified_slot { if a.justified_slot > self.last_justified_slot {
return Err(AttestationValidationError::JustifiedSlotIncorrect); return Err(AttestationValidationError::JustifiedSlotIncorrect);