prysm-pulse/beacon-chain/state/stategen
Radosław Kapka cbb0f1e11d
Implement GetStateRoot in the beacon API (#8402)
* update ethereumapis dependency

* span

* initial implementation

* introduce stategen Service interface and MockService

* Include AddStateForSlot function in the mock service

* return states from mock

* add GenesisState to POWChain mock

* populate roots in helper state

* initialize Slot when creating helper state

* tests

* code refactor - extract helper functions

* gzl

* use SetSlot in tests

* handle SetSlot error

* use new testutil's NewBeaconState

* gzl

* go mod tidy

* rename Service to StateManager

* move regex check to helper

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 21:08:36 +00:00
..
BUILD.bazel Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
epoch_boundary_state_cache_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
epoch_boundary_state_cache.go Various code inspection resolutions (#7438) 2020-10-12 08:11:05 +00:00
errors.go Fix Miscellaneous Deep Source Issues (#8007) 2020-11-30 19:55:30 -06:00
getter_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
getter.go Start from last valid root in loadStateBySlot (#8218) 2021-01-06 18:41:44 -06:00
hot_state_cache_test.go Move hot state cache to stategen (#8153) 2020-12-17 20:40:47 +00:00
hot_state_cache.go Move hot state cache to stategen (#8153) 2020-12-17 20:40:47 +00:00
log.go Feature flag to gate prune state upon start up (#5011) 2020-03-05 06:24:59 +00:00
metrics.go Cleanup stategen pkg (#7127) 2020-08-27 22:29:59 +00:00
migrate_test.go Fix import shadowing of db package (#8158) 2020-12-18 19:12:30 +00:00
migrate.go Move state summary cache to DB (#8101) 2020-12-16 08:56:21 -08:00
mock.go Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
replay_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
replay.go Update span names (#8394) 2021-02-04 20:23:50 +00:00
service_test.go Fix import shadowing of db package (#8158) 2020-12-18 19:12:30 +00:00
service.go Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
setter_test.go Fix import shadowing of db package (#8158) 2020-12-18 19:12:30 +00:00
setter.go Fix import shadowing of state package (#8191) 2021-01-04 20:07:12 +00:00