mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
7067c84c69
* include validator client stream * Update validator/client/validator_attest.go * gazelle * rem extraneous logs * fixing tests * resolve most tests * gaz * add lock * ivan feedback * pass tests for update protect * gaz * duties gaz * no need for canonical head slot * fix ctx leak * fmt * add in feature flag * add streaming subpackage * add polling/streaming separation * able to build * fix duplicate package names * fix polling * imports * confirm it works * fixed up comment * go lint comments * gaz * build * Update validator/client/streaming/service_test.go Co-authored-by: terence tsao <terence@prysmaticlabs.com> * tidy * fmt * add stream duties to e2e * add stream duties to e2e flags Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: terence tsao <terence@prysmaticlabs.com>
96 lines
3.1 KiB
Python
96 lines
3.1 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 = [
|
|
"arrays.go",
|
|
"attestations.go",
|
|
"blocks.go",
|
|
"state_root.go",
|
|
"trie_helpers.go",
|
|
"validators.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/state/stateutil",
|
|
visibility = [
|
|
"//beacon-chain:__subpackages__",
|
|
"//fuzz:__pkg__",
|
|
"//proto/testing:__subpackages__",
|
|
"//shared/testutil:__subpackages__",
|
|
"//shared/blockutil:__subpackages__",
|
|
"//slasher:__subpackages__",
|
|
"//tools/blocktree:__pkg__",
|
|
"//tools/pcli:__pkg__",
|
|
"//validator/client/streaming:__pkg__",
|
|
"//validator/client/polling:__pkg__",
|
|
],
|
|
deps = [
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/bytesutil:go_default_library",
|
|
"//shared/featureconfig:go_default_library",
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/htrutils:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/trieutil:go_default_library",
|
|
"@com_github_dgraph_io_ristretto//:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"attestations_test.go",
|
|
"benchmark_test.go",
|
|
"blocks_test.go",
|
|
"state_root_cache_fuzz_test.go",
|
|
"state_root_test.go",
|
|
"stateutil_test.go",
|
|
"trie_helpers_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/bytesutil:go_default_library",
|
|
"//shared/featureconfig:go_default_library",
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/htrutils:go_default_library",
|
|
"//shared/interop:go_default_library",
|
|
"//shared/mputil:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"//shared/testutil:go_default_library",
|
|
"@com_github_google_gofuzz//:go_default_library",
|
|
"@com_github_protolambda_zssz//merkle:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_benchmark_test",
|
|
size = "medium",
|
|
srcs = ["benchmark_test.go"],
|
|
args = [
|
|
"-test.bench=.",
|
|
"-test.benchmem",
|
|
"-test.v",
|
|
],
|
|
local = True,
|
|
tags = [
|
|
"benchmark",
|
|
"manual",
|
|
"no-cache",
|
|
],
|
|
deps = [
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/htrutils:go_default_library",
|
|
"//shared/testutil:go_default_library",
|
|
"@com_github_protolambda_zssz//merkle:go_default_library",
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
|
],
|
|
)
|