Radosław Kapka 0cb46eb29a Do not HTR the state when checking for optimistic mode (#12143)
* initial impl

* review feedback

* fix tests

* review feedback

* some improvements

* tests and small improvements

* gzl

* one more review

* fix test

* fix other test

* get the roots instead of hashing them

* fix comment

* fix justified case

* fix all tests

* misc

* gzl

* fix broken tests

* use isOptimisticForRoot once we have the blockroot

* Fix is_not_finalized_when_head_is_optimistic but reviewing the logic first

* Fix is_not_finalized_when_head_is_optimistic

* better root tests

* move optimistic check before parsing root

* check for last validated checkpoint

* add right check for finalized

* fix finalized tests

* removed impossible condition

* fix TestGetSyncCommitteeDuties

* Use Ancestor from chaininfo

* fix test

---------

Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2023-03-20 17:04:40 -03:00
2021-11-12 15:55:45 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-20 19:18:58 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2023-02-28 21:36:43 +00:00
2023-03-13 23:17:26 +00:00
2023-03-17 18:52:56 +00:00
2022-12-06 16:01:17 +00:00
2022-11-18 19:12:19 +00:00
2019-07-22 14:10:17 -05:00
2023-03-17 18:52:56 +00:00
2023-01-18 15:21:58 +08:00
2023-03-17 18:52:56 +00:00
2022-11-18 19:12:19 +00:00
2023-03-17 18:52:56 +00:00
2023-03-17 18:52:56 +00:00
2022-05-20 07:16:53 +00:00
2018-07-20 10:23:48 -05:00
2023-03-20 19:18:58 +00:00

Prysm: An Ethereum Consensus Implementation Written in Go

Build status Go Report Card Consensus_Spec_Version 1.2.0 Execution_API_Version 1.0.0-beta.1 Discord GitPOAP Badge

This is the core repository for Prysm, a Golang implementation of the Ethereum Consensus specification, developed by Prysmatic 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

Description
No description provided
Readme 850 MiB
Languages
Go 95.5%
Starlark 3.9%
Shell 0.4%
Smarty 0.1%