mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
2179ac683e
* Add a random fuzz test to ssz to capture panics and compare the effectiveness of the cache. This comment shows a difference in state root calculation 52% of the time and what is even more concering is that spec tests pass with the flag on. * added case for one * bring down failure rate * prevent caching operations if no cache enabled * unit test and pretty printer * identify further sources of problems * no more panics * not panicking anymore * fix lint * Merge branch 'master' into fuzz-ssz * Merge branch 'master' into fuzz-ssz * passing up to 68 * Merge branch 'fuzz-ssz' of github.com:prysmaticlabs/prysm into fuzz-ssz * need to find the culprit for 100 * 100 passes, now only 16 out of 1000 * state roots being mutated * one out of 10k * fuzzing stuff * fix up lint * Merge branch 'master' into fuzz-ssz * cleanup * fixing more comments * Merge branch 'master' into fuzz-ssz
45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"arrays.go",
|
|
"attestations.go",
|
|
"blocks.go",
|
|
"helpers.go",
|
|
"state_root.go",
|
|
"validators.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/stateutil",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/bytesutil:go_default_library",
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/mathutil:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
"@com_github_dgraph_io_ristretto//:go_default_library",
|
|
"@com_github_minio_sha256_simd//:go_default_library",
|
|
"@com_github_pkg_errors//:go_default_library",
|
|
"@com_github_protolambda_zssz//htr:go_default_library",
|
|
"@com_github_protolambda_zssz//merkle: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 = [
|
|
"state_root_cache_fuzz_test.go",
|
|
"state_root_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
|
"//shared/interop:go_default_library",
|
|
"@com_github_google_gofuzz//:go_default_library",
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
|
],
|
|
)
|