mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
* feat: (WIP)implement ``ComputeFieldRootsForBlockBody`` function to compute roots of fields in BlockBody * calculate field roots upto ``deposits`` * add some required constants fix some errors * implement ``ComputeFieldRootsForBlockBody`` function for all fields in ``BeaconBlockBody`` * populate `fieldRoots` based on block body version * fix constants * `bazel run //:gazelle -- fix` * remove nested `if`s * formatting 1 Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com> * formatting 2 Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com> * remove unrequired check Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com> * update naming 1 Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com> * update function name * add test for Phase0 block body * update Phase0 test * update phase0 test without setting any fields * fix some errors in Phase0 test * don't set fields * add altair test * add tests upto Electra * fix the function for deneb and newer forks * update dependencies * add checks to ensure interface implements the asserted type --------- Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>