prysm-pulse/beacon-chain
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
..
blockchain Log the slot and blockroot when we deadline waiting for blobs (#13774) 2024-03-21 20:29:23 +00:00
builder Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
cache mark in progress (#13750) 2024-03-15 16:46:26 +00:00
core Simplify ValidateAttestationTime (#13813) 2024-03-27 14:17:16 +00:00
das Remove unused deneb code (#13712) 2024-03-09 00:12:26 +00:00
db Modify the algorithm of updateFinalizedBlockRoots (#13486) 2024-03-21 21:09:56 +00:00
deterministic-genesis Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
execution chore(execution): Clean up unreachable code; use new(big.Int) instead of big.NewInt(0) (#13715) 2024-03-11 00:31:55 +00:00
forkchoice Do not check parent weight on early FCU (#13683) 2024-03-05 15:07:39 +00:00
gateway move setting route handlers to registration from start (#13676) 2024-02-28 11:30:31 +00:00
monitor Unify log fields (#13654) 2024-02-22 22:40:36 +00:00
node P2P: Simplify code (#13719) 2024-03-15 11:08:19 +00:00
operations Rewrite Pruning Implementation To Handle EIP 7045 (#13762) 2024-03-18 12:57:21 +00:00
p2p expand it (#13770) 2024-03-21 19:57:22 +00:00
package Update cross compile toolchains (#12069) 2023-03-07 20:09:46 +00:00
rpc Add bid value metrics (#13804) 2024-03-26 14:58:41 +00:00
slasher Slasher: Reduce surrounding/surrounded attestations processing time (#13629) 2024-02-21 15:12:37 +00:00
startup Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
state Modify the algorithm of updateFinalizedBlockRoots (#13486) 2024-03-21 21:09:56 +00:00
sync Refactor batch verifier for sharing across packages (#13812) 2024-03-27 12:36:17 +00:00
verification Refactor batch verifier for sharing across packages (#13812) 2024-03-27 12:36:17 +00:00
README.md Change Eth2 Repository Names (#9425) 2021-08-19 13:00:57 -05:00

Prysmatic Labs Beacon Chain Implementation

This is the main project folder for the beacon chain implementation of Ethereum written in Go by Prysmatic Labs.

You can also read our main README and join our active chat room on Discord.

Discord

Also, read the official beacon chain specification, this design spec serves as a source of truth for the beacon chain implementation we follow at Prysmatic Labs.