2019-08-16 13:13:04 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
2019-08-16 16:03:11 -04:00
|
|
|
"deadlines.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"doc.go",
|
2019-08-16 16:03:11 -04:00
|
|
|
"error.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"log.go",
|
|
|
|
"metrics.go",
|
2019-09-20 10:08:32 -07:00
|
|
|
"pending_blocks_queue.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"rpc.go",
|
2019-09-20 11:57:28 +05:30
|
|
|
"rpc_beacon_blocks_by_range.go",
|
|
|
|
"rpc_beacon_blocks_by_root.go",
|
2019-09-24 22:56:50 +08:00
|
|
|
"rpc_chunked_response.go",
|
2019-08-23 22:23:38 +05:30
|
|
|
"rpc_goodbye.go",
|
2019-09-20 11:57:28 +05:30
|
|
|
"rpc_status.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"service.go",
|
|
|
|
"subscriber.go",
|
2019-08-23 15:46:04 -04:00
|
|
|
"subscriber_beacon_attestation.go",
|
2019-08-22 14:11:52 -04:00
|
|
|
"subscriber_beacon_blocks.go",
|
2019-08-22 11:04:25 +05:30
|
|
|
"subscriber_handlers.go",
|
|
|
|
"validate_attester_slashing.go",
|
2019-08-23 15:46:04 -04:00
|
|
|
"validate_beacon_attestation.go",
|
2019-08-22 14:11:52 -04:00
|
|
|
"validate_beacon_blocks.go",
|
2019-08-22 20:01:56 +05:30
|
|
|
"validate_proposer_slashing.go",
|
2019-08-18 11:33:58 -04:00
|
|
|
"validate_voluntary_exit.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/sync",
|
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
|
|
deps = [
|
2019-08-21 16:58:38 -04:00
|
|
|
"//beacon-chain/blockchain:go_default_library",
|
2019-08-18 11:33:58 -04:00
|
|
|
"//beacon-chain/core/blocks:go_default_library",
|
2019-08-22 14:11:52 -04:00
|
|
|
"//beacon-chain/core/helpers:go_default_library",
|
2019-08-23 11:48:40 -06:00
|
|
|
"//beacon-chain/core/state:go_default_library",
|
2019-09-23 21:46:40 -07:00
|
|
|
"//beacon-chain/core/state/interop:go_default_library",
|
2019-11-23 03:35:47 +00:00
|
|
|
"//beacon-chain/core/statefeed:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//beacon-chain/db:go_default_library",
|
2019-08-20 15:06:49 -04:00
|
|
|
"//beacon-chain/db/filters:go_default_library",
|
2019-08-18 11:33:58 -04:00
|
|
|
"//beacon-chain/operations:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//beacon-chain/p2p:go_default_library",
|
2019-08-30 13:15:40 -07:00
|
|
|
"//beacon-chain/p2p/encoder:go_default_library",
|
2019-09-20 10:54:32 -07:00
|
|
|
"//beacon-chain/sync/peerstatus:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
|
|
"//shared:go_default_library",
|
2019-08-22 14:11:52 -04:00
|
|
|
"//shared/bls:go_default_library",
|
|
|
|
"//shared/bytesutil:go_default_library",
|
2019-08-22 11:04:25 +05:30
|
|
|
"//shared/hashutil:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//shared/params:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//shared/roughtime:go_default_library",
|
2019-09-29 11:48:55 -07:00
|
|
|
"//shared/traceutil:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
2019-08-18 11:33:58 -04:00
|
|
|
"@com_github_karlseguin_ccache//:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"@com_github_libp2p_go_libp2p_core//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_core//network:go_default_library",
|
2019-08-29 22:02:52 +05:30
|
|
|
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
|
2019-08-20 15:06:49 -04:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2019-08-28 11:14:22 -04:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2019-11-26 23:08:18 -06:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-08-22 14:11:52 -04:00
|
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-09-03 11:06:35 -07:00
|
|
|
"@io_opencensus_go//trace:go_default_library",
|
2019-10-10 17:44:24 +09:00
|
|
|
"@org_golang_x_exp//rand:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = [
|
2019-08-16 16:03:11 -04:00
|
|
|
"error_test.go",
|
2019-09-20 10:08:32 -07:00
|
|
|
"pending_blocks_queue_test.go",
|
2019-09-20 11:57:28 +05:30
|
|
|
"rpc_beacon_blocks_by_range_test.go",
|
|
|
|
"rpc_beacon_blocks_by_root_test.go",
|
2019-08-23 22:23:38 +05:30
|
|
|
"rpc_goodbye_test.go",
|
2019-09-20 11:57:28 +05:30
|
|
|
"rpc_status_test.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"rpc_test.go",
|
2019-08-28 08:29:45 -07:00
|
|
|
"subscriber_beacon_blocks_test.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
"subscriber_test.go",
|
2019-08-23 15:46:04 -04:00
|
|
|
"validate_attester_slashing_test.go",
|
|
|
|
"validate_beacon_attestation_test.go",
|
2019-08-22 14:11:52 -04:00
|
|
|
"validate_beacon_blocks_test.go",
|
2019-08-22 20:01:56 +05:30
|
|
|
"validate_proposer_slashing_test.go",
|
2019-08-18 11:33:58 -04:00
|
|
|
"validate_voluntary_exit_test.go",
|
2019-08-16 13:13:04 -04:00
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
2019-08-16 16:03:11 -04:00
|
|
|
flaky = True, # libp2p hosts are flaky upstream.
|
2019-08-16 13:13:04 -04:00
|
|
|
deps = [
|
2019-08-26 13:06:16 -07:00
|
|
|
"//beacon-chain/blockchain/testing:go_default_library",
|
2019-08-18 11:33:58 -04:00
|
|
|
"//beacon-chain/core/helpers:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//beacon-chain/core/state:go_default_library",
|
2019-11-23 03:35:47 +00:00
|
|
|
"//beacon-chain/core/statefeed:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//beacon-chain/db/testing:go_default_library",
|
2019-08-30 13:15:40 -07:00
|
|
|
"//beacon-chain/p2p/encoder:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//beacon-chain/p2p/testing:go_default_library",
|
2019-09-20 10:54:32 -07:00
|
|
|
"//beacon-chain/sync/initial-sync/testing:go_default_library",
|
|
|
|
"//beacon-chain/sync/peerstatus:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//proto/testing:go_default_library",
|
2019-08-18 11:33:58 -04:00
|
|
|
"//shared/bls:go_default_library",
|
|
|
|
"//shared/bytesutil:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"//shared/params:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
"//shared/testutil:go_default_library",
|
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_core//:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"@com_github_libp2p_go_libp2p_core//network:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_core//protocol:go_default_library",
|
2019-11-26 23:08:18 -06:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-08-16 16:03:11 -04:00
|
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
2019-08-28 08:29:45 -07:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-08-25 00:11:24 +05:30
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
2019-08-16 13:13:04 -04:00
|
|
|
],
|
|
|
|
)
|