mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-18 07:48:46 +00:00
fad118cb04
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. |
||
---|---|---|
.. | ||
attestation_test.go | ||
attestation.go | ||
beacon_committee_test.go | ||
beacon_committee.go | ||
block_test.go | ||
block.go | ||
BUILD.bazel | ||
genesis.go | ||
metrics.go | ||
randao_test.go | ||
randao.go | ||
rewards_penalties_test.go | ||
rewards_penalties.go | ||
shuffle_test.go | ||
shuffle.go | ||
sync_committee_test.go | ||
sync_committee.go | ||
validators_test.go | ||
validators.go | ||
weak_subjectivity_test.go | ||
weak_subjectivity.go |