prysm-pulse/beacon-chain/rpc/eth/debug
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
..
BUILD.bazel Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
debug_test.go Do not HTR the state when checking for optimistic mode (#12143) 2023-03-20 17:04:40 -03:00
debug.go Do not HTR the state when checking for optimistic mode (#12143) 2023-03-20 17:04:40 -03:00
server.go Do not HTR the state when checking for optimistic mode (#12143) 2023-03-20 17:04:40 -03:00