prysm-pulse/beacon-chain/state
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
..
stategen Implement GetStateRoot in the beacon API (#8402) 2021-02-11 21:08:36 +00:00
stateutil ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
BUILD.bazel ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
cloners.go Pubsub: ensure better TopicIDs validation (#7418) 2020-10-03 01:51:58 +00:00
doc.go Fixes docs.go -> doc.go file name (#7128) 2020-08-27 20:28:54 +00:00
field_trie_test.go ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
field_trie.go Prevent Panics in Field Trie Helpers (#7613) 2020-10-23 21:41:45 +00:00
getters_test.go Process attestation: reduce checkpoint copies (#8409) 2021-02-10 19:30:11 +00:00
getters.go Make Individual Validators Immutable (#8397) 2021-02-10 20:52:45 +00:00
helpers_test.go Prevent Panics in Field Trie Helpers (#7613) 2020-10-23 21:41:45 +00:00
references_test.go Make Individual Validators Immutable (#8397) 2021-02-10 20:52:45 +00:00
setters.go Make Individual Validators Immutable (#8397) 2021-02-10 20:52:45 +00:00
state_test.go Fix Deadlock in Runtime (#8321) 2021-01-25 11:01:55 +08:00
state_trie_test.go Configurable testutil's BeaconState (#8407) 2021-02-08 20:00:09 +00:00
state_trie.go ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
types_bench_test.go Tiny optimization in state refs lock/unlock (#6520) 2020-07-08 12:53:36 +00:00
types_test.go ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
types.go Add state field count to config (#8068) 2020-12-07 21:49:28 -06:00