prysm-pulse/beacon-chain/core
Potuz fad118cb04
Simplify ValidateAttestationTime (#13813)
ValidateClock in ValidateAttestationTime is useless

The check is that the attSlot is not > than the currentslot + 128 slots.

Later there's a check that the attSlot start time is not > than current slot
start time + clockDisparity.

if attSlot > than currentSlot + 128 slots, then the second check would fail
anyway.

The lattest check already guarantees that the attSlot cannot be larger than the
currentSlot, therefore it may never happen that attEpoch > currentEpoch. We just
need to check for Deneb that attEpoch >= currentEpoch - 1.

Removes also some duplicated variables like the attestation epoch being computed
twice.
2024-03-27 14:17:16 +00:00
..
altair Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
blocks add changes (#13657) 2024-02-23 10:51:46 +00:00
capella Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
deneb Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
epoch Compute unrealized checkpoints with pcli (#13692) 2024-03-12 15:03:21 +00:00
execution Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
feed Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
helpers Simplify ValidateAttestationTime (#13813) 2024-03-27 14:17:16 +00:00
signing Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
time Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
transition small cleanup on functions (#13666) 2024-02-26 22:23:23 +00:00
validators Update to V5 (#13622) 2024-02-15 05:46:47 +00:00