prysm-pulse/beacon-chain/rpc/beaconv1
Radosław Kapka 6f2438436c
Implement GetStateFork in the beacon API (#8456)
* 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

* implement StateByStateRoot

* initial implementation

* tests

* refactor code into smaller functions

* gzl

* simplify StateByStateRoot and tests

* Nishant's feedback

* gzl

* handle error in test

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-02-17 09:26:39 -06:00
..
blocks_test.go ETH2 Types: Slot (#8408) 2021-02-16 07:45:34 +00:00
blocks.go ETH2 Types: Slot (#8408) 2021-02-16 07:45:34 +00:00
BUILD.bazel Implement GetStateFork in the beacon API (#8456) 2021-02-17 09:26:39 -06:00
config_test.go ETH2 Types: Slot (#8408) 2021-02-16 07:45:34 +00:00
config.go ETH2 Types: Slot (#8408) 2021-02-16 07:45:34 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
pool.go Eth2 API: Add outline for beacon endpoints (#7408) 2020-10-05 00:15:27 +00:00
server_test.go Verify interface compliance using typed nil instead of dereferencing and conversion (#7489) 2020-10-10 00:36:48 +00:00
server.go Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
state_test.go Implement GetStateFork in the beacon API (#8456) 2021-02-17 09:26:39 -06:00
state.go Implement GetStateFork in the beacon API (#8456) 2021-02-17 09:26:39 -06:00
validator.go Remove WaitForSynced (#7835) 2020-11-16 20:48:16 -06:00