Go to file
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
.github Update Libp2p To v0.32.1 and Go to v1.21.5 (#13304) 2023-12-21 16:09:54 +00:00
.well-known Update security.txt (#9896) 2021-11-12 15:55:45 +00:00
api adding headers to post endpoint (#13753) 2024-03-15 18:19:42 +00:00
async Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
beacon-chain Simplify ValidateAttestationTime (#13813) 2024-03-27 14:17:16 +00:00
build Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
cache Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
cmd Set default LocalBlockValueBoost to 10 (#13772) 2024-03-22 13:18:20 +00:00
config Keymanager APIs - get,post,delete graffiti (#13474) 2024-03-18 15:03:08 +00:00
consensus-types Rename payloadattribute Timestamps to Timestamp (#13523) 2024-03-21 21:11:01 +00:00
container Optimize Adding Dirty Indices (#13660) 2024-02-24 10:08:17 +00:00
contracts/deposit Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
crypto Switch gomock library (#13639) 2024-02-21 18:37:17 +00:00
encoding Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
hack Spec test coverage report hack (#13718) 2024-03-25 16:10:32 +00:00
io create the log file along with its parent directory if not present (#12675) 2024-03-22 15:32:08 +00:00
math Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
monitoring Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
network Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
proto Keymanager APIs - get,post,delete graffiti (#13474) 2024-03-18 15:03:08 +00:00
runtime Implement EIP-3076 minimal slashing protection, using a filesystem database (#13360) 2024-03-05 15:27:15 +00:00
testing Spec test coverage report hack (#13718) 2024-03-25 16:10:32 +00:00
third_party Downgrade Level DB to Stable Version (#13671) 2024-02-29 04:49:02 +00:00
time Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
tools Add tarball support for docker images (#13790) 2024-03-22 15:31:29 +00:00
validator Get genesis only once (#13796) 2024-03-26 03:26:34 +00:00
.bazelrc Update bazel, rules_go, gazelle, and go versions (#13724) 2024-03-12 14:33:37 +00:00
.bazelversion Update bazel, rules_go, gazelle, and go versions (#13724) 2024-03-12 14:33:37 +00:00
.buildkite-bazelrc Bazel 7.0.0 (#13321) 2024-01-10 15:34:11 +00:00
.codecov.yml Codecov: ignore testing directories (#8777) 2021-04-16 08:44:36 -05:00
.deepsource.toml Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
.dockerignore Add tool and script for interop testing (#3417) 2019-09-09 17:31:19 -04:00
.gitattributes linguist-generated=true for mock and pb go files (#1465) 2019-02-02 17:25:28 -05:00
.gitignore Spec test coverage report hack (#13718) 2024-03-25 16:10:32 +00:00
.golangci.yml Enable wastedassign linter & fix findings (#13507) 2024-01-25 17:07:48 +00:00
.policy.yml Include Policy Bot Application (#7523) 2020-10-14 04:14:38 +00:00
.travis.yml Resolve Proto Lint Issues (#3044) 2019-07-22 14:10:17 -05:00
bazel.sh Spec test coverage report hack (#13718) 2024-03-25 16:10:32 +00:00
BUILD.bazel Update to V5 (#13622) 2024-02-15 05:46:47 +00:00
CONTRIBUTING.md fix typo (CONTRIBUTING.md) (#12548) 2023-06-18 19:24:19 -07:00
DEPENDENCIES.md Update Gohashtree to v0.0.4-beta (#13569) 2024-02-01 15:42:56 +00:00
deps.bzl Downgrade Level DB to Stable Version (#13671) 2024-02-29 04:49:02 +00:00
distroless_deps.bzl docker: Add coreutils to docker images (#13564) 2024-02-03 19:21:21 +00:00
fuzzbuzz.yaml Update go to 1.19.3 (#11630) 2022-11-18 19:12:19 +00:00
go.mod Downgrade Level DB to Stable Version (#13671) 2024-02-29 04:49:02 +00:00
go.sum Downgrade Level DB to Stable Version (#13671) 2024-02-29 04:49:02 +00:00
INTEROP.md Remove deprecated items (#13600) 2024-02-15 15:23:31 +00:00
LICENSE.md update to GPLv3 (#297) 2018-07-20 10:23:48 -05:00
MODULE.bazel Bazel 7.0.0 (#13321) 2024-01-10 15:34:11 +00:00
MODULE.bazel.lock Update bazel, rules_go, gazelle, and go versions (#13724) 2024-03-12 14:33:37 +00:00
nogo_config.json sort static analyzers, add more, fix violations (#13441) 2024-01-09 23:29:36 +00:00
prysm.bat Fix typos (#13053) 2023-10-19 12:23:11 +00:00
prysm.ps1 Update prysm scripts to support client-stats, deprecate slasher (#8971) 2021-06-02 14:06:59 -05:00
prysm.sh correctly assign arm64 arch for Apple M1 (#11675) 2022-11-21 23:11:02 +00:00
README.md Update spec test to official 1.4.0 (#13761) 2024-03-18 23:39:03 +00:00
SECURITY.md Add how users should report security vulnerabilities for this repository (#9525) 2021-09-10 03:13:09 +00:00
service-account.json.enc Bazel cache for travis (#236) 2018-07-07 16:01:58 -04:00
TERMS_OF_SERVICE.md Update Terms of Service (#13163) 2023-11-02 17:11:11 +00:00
WORKSPACE Add tarball support for docker images (#13790) 2024-03-22 15:31:29 +00:00

Prysm: An Ethereum Consensus Implementation Written in Go

Build status Go Report Card Consensus_Spec_Version 1.4.0 Execution_API_Version 1.0.0-beta.2 Discord GitPOAP Badge

This is the core repository for Prysm, a Golang implementation of the Ethereum Consensus specification, developed by Offchain Labs. See the Changelog for details of the latest releases and upcoming breaking changes.

Getting Started

A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the official documentation portal. If you still have questions, feel free to stop by our Discord.

Staking on Mainnet

To participate in staking, you can join the official eth2 launchpad. The launchpad is the only recommended way to become a validator on mainnet. You can explore validator rewards/penalties via Bitfly's block explorer: beaconcha.in, and follow the latest blocks added to the chain on beaconscan.

Contributing

Branches

Prysm maintains two permanent branches:

  • master: This points to the latest stable release. It is ideal for most users.
  • develop: This is used for development, it contains the latest PRs. Developers should base their PRs on this branch.

Guide

Want to get involved? Check out our Contribution Guide to learn more!

License

GNU General Public License v3.0

Terms of Use