mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
b241fafd13
* cherry pick * fixes test * go tidy * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter * Merge refs/heads/master into peer-scorer-weighted-sorter
59 lines
2.3 KiB
Python
59 lines
2.3 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library")
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"score_bad_responses.go",
|
|
"score_block_providers.go",
|
|
"scorer_manager.go",
|
|
"status.go",
|
|
"store.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/p2p/peers",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//beacon-chain/core/helpers:go_default_library",
|
|
"//beacon-chain/flags:go_default_library",
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/rand:go_default_library",
|
|
"//shared/roughtime:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
|
"@com_github_libp2p_go_libp2p_core//network:go_default_library",
|
|
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
|
|
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"benchmark_test.go",
|
|
"peers_test.go",
|
|
"score_bad_responses_test.go",
|
|
"score_block_providers_test.go",
|
|
"scorer_manager_test.go",
|
|
"status_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/flags:go_default_library",
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/featureconfig:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/rand:go_default_library",
|
|
"//shared/roughtime:go_default_library",
|
|
"//shared/testutil/assert:go_default_library",
|
|
"//shared/testutil/require:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
|
"@com_github_libp2p_go_libp2p_core//network:go_default_library",
|
|
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
|
|
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
],
|
|
)
|