prysm-pulse/beacon-chain/core/helpers
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
..
attestation_test.go Simplify ValidateAttestationTime (#13813) 2024-03-27 14:17:16 +00:00
attestation.go Simplify ValidateAttestationTime (#13813) 2024-03-27 14:17:16 +00:00
beacon_committee_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
beacon_committee.go Employ Dynamic Cache Sizes (#13640) 2024-02-28 10:46:52 +00:00
block_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
block.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
BUILD.bazel Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
genesis.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
metrics.go Performance Metrics for Prysm (#11377) 2022-09-01 01:26:19 +00:00
randao_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
randao.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
rewards_penalties_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
rewards_penalties.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
shuffle_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
shuffle.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
sync_committee_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
sync_committee.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
validators_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
validators.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
weak_subjectivity_test.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
weak_subjectivity.go Update to V5 (#13622) 2024-02-15 05:46:47 +00:00