prysm-pulse/beacon-chain/sync/peerstatus/BUILD.bazel
Nishant Das f8c870aa91
Fix Failure Counter (#3850)
* fix bug

* return if not ok

* don't set peer status there

* fix build

* fix test

* fix all other tests

* add regression test

* cosmetic changes
2019-10-29 13:23:55 +08:00

24 lines
727 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["peer_statuses.go"],
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/sync/peerstatus",
visibility = [
"//beacon-chain/p2p:__subpackages__",
"//beacon-chain/sync:__subpackages__",
],
deps = [
"//proto/beacon/p2p/v1:go_default_library",
"//shared/roughtime:go_default_library",
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["peer_statuses_test.go"],
embed = [":go_default_library"],
deps = ["@com_github_libp2p_go_libp2p_core//peer:go_default_library"],
)