prysm-pulse/beacon-chain/rpc
Radosław Kapka 190d862552
Implement GetBeaconState in the debug API (#8631)
* Return status.Errorf instead of plain errors from gRPC functions

* return plain errors from helper functions

* change errors to lowercase in node

* correct test expectations

* extracted StateFetcher

* StateFetcher tests

* extract beacon state creation option and fix state tests

* add comment to StateFetcher

* register the server

* implement grpc function

* test ToProto

* gRPC function test with mock state fetcher

* reduce visibility of packages

* add missing error assertion

* removed unused code

* overwrite config name

* gzl

* Fix service fields

* rename StateFetcher to Provider

* Update beacon-chain/state/stateV0/state_trie.go

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>

* adjust code to new v0 interfaces

* interface/struct naming changes

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-29 21:04:35 +00:00
..
beacon Harden beacon state interface for Altair (#8673) 2021-03-26 18:15:03 +00:00
beaconv1 Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00
debug BeaconState: Expose MarshalSSZ (#8609) 2021-03-16 00:43:27 +00:00
debugv1 Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00
node Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
nodev1 Return status.Errorf instead of plain errors from gRPC functions (#8619) 2021-03-17 16:47:44 +00:00
statefetcher Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00
testutil Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00
validator Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
BUILD.bazel Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
service_test.go Embed Config Pattern For Attestation, POW Chain, and RPC Services (#8635) 2021-03-21 16:58:41 +00:00
service.go Implement GetBeaconState in the debug API (#8631) 2021-03-29 21:04:35 +00:00