mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
190d862552
* 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>
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"debug.go",
|
|
"server.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/rpc/debugv1",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//beacon-chain/db:go_default_library",
|
|
"//beacon-chain/rpc/statefetcher:go_default_library",
|
|
"@com_github_gogo_protobuf//types:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1:go_default_library",
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
"@org_golang_google_grpc//status:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = ["debug_test.go"],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/rpc/testutil:go_default_library",
|
|
"//shared/testutil:go_default_library",
|
|
"//shared/testutil/assert:go_default_library",
|
|
"//shared/testutil/require:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1:go_default_library",
|
|
],
|
|
)
|