rustfmt edits
This commit is contained in:
parent
564f13be5f
commit
4d43de1cea
@ -85,9 +85,10 @@ where
|
|||||||
* The slot of this attestation must not be more than cycle_length + 1 distance
|
* The slot of this attestation must not be more than cycle_length + 1 distance
|
||||||
* from the parent_slot of block that contained it.
|
* from the parent_slot of block that contained it.
|
||||||
*/
|
*/
|
||||||
if a.slot < self
|
if a.slot
|
||||||
.parent_block_slot
|
< self
|
||||||
.saturating_sub(u64::from(self.cycle_length).saturating_add(1))
|
.parent_block_slot
|
||||||
|
.saturating_sub(u64::from(self.cycle_length).saturating_add(1))
|
||||||
{
|
{
|
||||||
return Err(AttestationValidationError::ParentSlotTooLow);
|
return Err(AttestationValidationError::ParentSlotTooLow);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user