mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
4008ea736f
* scaffolding for verification package * WIP blob verification methods * lock wrapper for safer forkchoice sharing * more solid cache and verification designs; adding tests * more test coverage, adding missing cache files * clearer func name * remove forkchoice borrower (it's in another PR) * revert temporary interface experiment * lint * nishant feedback * add comments with spec text to all verifications * some comments on public methods * invert confusing verification name * deep source * remove cache from ProposerCache + gaz * more consistently early return on error paths * messed up the test with the wrong config value * terence naming feedback * tests on BeginsAt * lint * deep source... * name errors after failure, not expectation * deep sooource * check len()==0 instead of nil so empty lists work * update test for EIP-7044 --------- Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
106 lines
4.1 KiB
Python
106 lines
4.1 KiB
Python
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
testonly = True,
|
|
srcs = [
|
|
"altair.go",
|
|
"attestation.go",
|
|
"bazel.go",
|
|
"bellatrix.go",
|
|
"bellatrix_state.go",
|
|
"blob.go",
|
|
"block.go",
|
|
"capella_block.go",
|
|
"capella_state.go",
|
|
"deneb.go",
|
|
"deneb_state.go",
|
|
"deposits.go",
|
|
"helpers.go",
|
|
"merge.go",
|
|
"state.go",
|
|
"sync_aggregate.go",
|
|
"sync_committee.go",
|
|
"wait_timeout.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/testing/util",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//beacon-chain/core/altair:go_default_library",
|
|
"//beacon-chain/core/blocks:go_default_library",
|
|
"//beacon-chain/core/helpers:go_default_library",
|
|
"//beacon-chain/core/signing:go_default_library",
|
|
"//beacon-chain/core/time:go_default_library",
|
|
"//beacon-chain/core/transition:go_default_library",
|
|
"//beacon-chain/db/iface:go_default_library",
|
|
"//beacon-chain/p2p/types:go_default_library",
|
|
"//beacon-chain/state:go_default_library",
|
|
"//beacon-chain/state/state-native:go_default_library",
|
|
"//beacon-chain/state/stateutil:go_default_library",
|
|
"//config/fieldparams:go_default_library",
|
|
"//config/params:go_default_library",
|
|
"//consensus-types/blocks:go_default_library",
|
|
"//consensus-types/interfaces:go_default_library",
|
|
"//consensus-types/primitives:go_default_library",
|
|
"//container/trie:go_default_library",
|
|
"//crypto/bls:go_default_library",
|
|
"//crypto/hash:go_default_library",
|
|
"//crypto/rand:go_default_library",
|
|
"//encoding/bytesutil:go_default_library",
|
|
"//network/forks:go_default_library",
|
|
"//proto/engine/v1:go_default_library",
|
|
"//proto/eth/v1:go_default_library",
|
|
"//proto/eth/v2:go_default_library",
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
"//runtime/interop:go_default_library",
|
|
"//runtime/version:go_default_library",
|
|
"//testing/assertions:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"//time/slots:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
|
|
"@com_github_ethereum_go_ethereum//core/types:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"attestation_test.go",
|
|
"bellatrix_state_test.go",
|
|
"block_test.go",
|
|
"capella_block_test.go",
|
|
"deneb_test.go",
|
|
"deposits_test.go",
|
|
"helpers_test.go",
|
|
"state_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//beacon-chain/core/blocks:go_default_library",
|
|
"//beacon-chain/core/helpers:go_default_library",
|
|
"//beacon-chain/core/signing:go_default_library",
|
|
"//beacon-chain/core/time:go_default_library",
|
|
"//beacon-chain/core/transition:go_default_library",
|
|
"//beacon-chain/core/transition/stateutils:go_default_library",
|
|
"//config/fieldparams:go_default_library",
|
|
"//config/params:go_default_library",
|
|
"//consensus-types/blocks:go_default_library",
|
|
"//consensus-types/primitives:go_default_library",
|
|
"//crypto/hash:go_default_library",
|
|
"//encoding/bytesutil:go_default_library",
|
|
"//encoding/ssz:go_default_library",
|
|
"//proto/eth/v1:go_default_library",
|
|
"//proto/eth/v2:go_default_library",
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
|
"//testing/assert:go_default_library",
|
|
"//testing/require:go_default_library",
|
|
"//time/slots:go_default_library",
|
|
"@org_golang_google_protobuf//proto:go_default_library",
|
|
],
|
|
)
|