mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
1fa864cb1a
* 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> |
||
---|---|---|
.. | ||
mock | ||
BUILD.bazel | ||
cacher.go | ||
epoch_boundary_state_cache_test.go | ||
epoch_boundary_state_cache.go | ||
errors.go | ||
getter_test.go | ||
getter.go | ||
history_test.go | ||
history.go | ||
hot_state_cache_test.go | ||
hot_state_cache.go | ||
init_test.go | ||
log.go | ||
metrics.go | ||
migrate_test.go | ||
migrate.go | ||
mock_test.go | ||
replay_test.go | ||
replay.go | ||
replayer_test.go | ||
replayer.go | ||
service_test.go | ||
service.go | ||
setter_test.go | ||
setter.go |