prysm-pulse/beacon-chain/rpc
kasey 1fa864cb1a
use slot:block index correctly (#10820)
* adding splitRoots, refactor to use it

* use splitRoots & work in roots only

the most common use case for this method is to get a list of
candidate roots and check if they are canonical. there isn't a great
reason to look up all the non-canonical blocks, because forkchoice
checks based on the root only, so just return roots and defer the
responsibility of resolving those to full blocks.

* update comment

* clean up shadowing

* more clear non-error return

* add test case for single root in index slot

* fmt

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-07 16:47:42 +00:00
..
apimiddleware Set fee recipient validator index as per spec. (#10814) 2022-06-03 21:52:17 +00:00
eth use slot:block index correctly (#10820) 2022-06-07 16:47:42 +00:00
prysm/v1alpha1 use slot:block index correctly (#10820) 2022-06-07 16:47:42 +00:00
statefetcher use slot:block index correctly (#10820) 2022-06-07 16:47:42 +00:00
testutil Clean up various warnings (#10710) 2022-05-19 04:38:04 +00:00
BUILD.bazel Move Engine API to Powchain and Consolidate Connection Management (#10438) 2022-04-01 14:04:24 -04:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
service_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00
service.go Extract OptimisticSyncFetcher interface (#10654) 2022-05-12 17:23:45 +00:00