prysm-pulse/beacon-chain/powchain/testing
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 Rename non-generated files ending with '_mock' (#8317) 2021-01-25 22:30:55 +00:00
mock_faulty_powchain.go Rename non-generated files ending with '_mock' (#8317) 2021-01-25 22:30:55 +00:00
mock_powchain.go Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00