prysm-pulse/beacon-chain/powchain
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
..
testing Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
types Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
block_cache_test.go Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
block_cache.go Better receiver names in beacon chain module (#8286) 2021-01-19 13:21:32 +00:00
block_reader_test.go Rename NewService to New (#8337) 2021-01-26 10:26:57 +00:00
block_reader.go Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
BUILD.bazel Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
deposit_test.go Rename NewService to New (#8337) 2021-01-26 10:26:57 +00:00
deposit.go Avoid Setting State to Nil In Process Deposit (#7681) 2020-11-02 17:12:05 +00:00
log_processing_test.go Remove unused channel from Powchain Service (#8368) 2021-01-30 13:33:52 +00:00
log_processing.go Simplify expressions (#8370) 2021-02-01 15:14:36 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
powchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
service_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
service.go Remove unused channel from Powchain Service (#8368) 2021-01-30 13:33:52 +00:00