2019-10-17 03:12:26 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2019-11-12 17:24:56 +00:00
|
|
|
srcs = [
|
2019-11-18 19:49:39 +00:00
|
|
|
"detect_update_min_max_span.go",
|
2019-11-12 17:24:56 +00:00
|
|
|
"server.go",
|
|
|
|
],
|
2019-10-17 03:12:26 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/slasher/rpc",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//beacon-chain/core/helpers:go_default_library",
|
2019-11-27 05:08:18 +00:00
|
|
|
"//proto/beacon/rpc/v1:go_default_library",
|
2019-11-12 17:24:56 +00:00
|
|
|
"//shared/params:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
"//slasher/db:go_default_library",
|
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
|
|
|
"@com_github_gogo_protobuf//types:go_default_library",
|
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2019-11-27 05:08:18 +00:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-11-20 05:14:50 +00:00
|
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
|
|
"@org_golang_google_grpc//status:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-11-12 17:24:56 +00:00
|
|
|
srcs = [
|
2019-11-18 19:49:39 +00:00
|
|
|
"detect_update_min_max_span_test.go",
|
2019-11-12 17:24:56 +00:00
|
|
|
"server_test.go",
|
|
|
|
],
|
2019-10-17 03:12:26 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2019-11-27 05:08:18 +00:00
|
|
|
"//proto/beacon/rpc/v1:go_default_library",
|
2019-11-12 17:24:56 +00:00
|
|
|
"//shared/params:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
"//slasher/db:go_default_library",
|
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
2019-11-27 05:08:18 +00:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
],
|
|
|
|
)
|
2019-11-18 19:49:39 +00:00
|
|
|
|
|
|
|
# gazelle:exclude detect_update_min_max_span_bench_test.go
|
|
|
|
go_test(
|
|
|
|
name = "go_benchmark_test",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["detect_update_min_max_span_bench_test.go"],
|
|
|
|
args = [
|
|
|
|
"-test.bench=.",
|
|
|
|
"-test.benchmem",
|
|
|
|
"-test.v",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
local = True,
|
|
|
|
tags = [
|
|
|
|
"benchmark",
|
|
|
|
"manual",
|
|
|
|
"no-cache",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//slasher/db:go_default_library",
|
|
|
|
],
|
|
|
|
)
|