2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
2020-10-26 12:15:42 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2020-03-08 21:11:59 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2020-04-02 03:08:23 +00:00
|
|
|
srcs = [
|
2020-06-14 02:51:54 +00:00
|
|
|
"doc.go",
|
|
|
|
"flat_span_cache.go",
|
2020-10-26 12:15:42 +00:00
|
|
|
"highest_attestation_cache.go",
|
2021-01-11 20:03:28 +00:00
|
|
|
"log.go",
|
2020-04-02 03:08:23 +00:00
|
|
|
"span_cache.go",
|
|
|
|
"validators_cache.go",
|
|
|
|
],
|
2020-03-08 21:11:59 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/slasher/cache",
|
|
|
|
visibility = ["//slasher:__subpackages__"],
|
|
|
|
deps = [
|
2020-10-26 12:15:42 +00:00
|
|
|
"//proto/slashing:go_default_library",
|
2020-03-08 21:11:59 +00:00
|
|
|
"//slasher/detection/attestations/types:go_default_library",
|
|
|
|
"@com_github_hashicorp_golang_lru//:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2021-02-09 10:05:22 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
2020-05-22 19:44:48 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-03-08 21:11:59 +00:00
|
|
|
],
|
|
|
|
)
|
2020-10-26 12:15:42 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["highest_attestation_cache_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//proto/slashing:go_default_library",
|
|
|
|
"//shared/testutil/require:go_default_library",
|
2021-02-09 10:05:22 +00:00
|
|
|
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
2020-10-26 12:15:42 +00:00
|
|
|
],
|
|
|
|
)
|