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",
|
2020-02-14 16:46:55 +00:00
|
|
|
srcs = ["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-12-21 03:47:00 +00:00
|
|
|
"//proto/slashing:go_default_library",
|
2020-01-22 05:39:21 +00:00
|
|
|
"//shared/hashutil:go_default_library",
|
2020-02-13 16:19:46 +00:00
|
|
|
"//slasher/db/kv:go_default_library",
|
|
|
|
"//slasher/db/types:go_default_library",
|
2020-02-14 19:03:25 +00:00
|
|
|
"//slasher/detection/attestations:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
"@com_github_gogo_protobuf//proto: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",
|
2020-01-22 05:39:21 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2020-02-14 16:46:55 +00:00
|
|
|
srcs = ["server_test.go"],
|
2019-10-17 03:12:26 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
2019-12-21 03:47:00 +00:00
|
|
|
"//proto/slashing:go_default_library",
|
2019-11-12 17:24:56 +00:00
|
|
|
"//shared/params:go_default_library",
|
2020-02-13 16:19:46 +00:00
|
|
|
"//slasher/db/testing:go_default_library",
|
|
|
|
"//slasher/db/types:go_default_library",
|
2020-01-22 05:39:21 +00:00
|
|
|
"//slasher/flags:go_default_library",
|
2019-10-17 03:12:26 +00:00
|
|
|
"@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",
|
2020-01-22 05:39:21 +00:00
|
|
|
"@com_github_urfave_cli//: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",
|
2019-12-04 06:39:38 +00:00
|
|
|
srcs = ["slashing_bench_test.go"],
|
2019-11-18 19:49:39 +00:00
|
|
|
args = [
|
|
|
|
"-test.bench=.",
|
|
|
|
"-test.benchmem",
|
|
|
|
"-test.v",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
local = True,
|
|
|
|
tags = [
|
|
|
|
"benchmark",
|
|
|
|
"manual",
|
|
|
|
"no-cache",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//slasher/db:go_default_library",
|
2020-01-22 05:39:21 +00:00
|
|
|
"//slasher/flags:go_default_library",
|
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
2019-11-18 19:49:39 +00:00
|
|
|
],
|
|
|
|
)
|