mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
3388ab74cf
* Docs * Interface definitions * Fmt and gazelle * Rename interface to interfaces * Define all the type for protoarray * Gaz * Add error types * Add compute delta helper * Compute delta tests * Gaz * Add checking if nodes viable * Test for viable head * Test for non leaf node can lead to viable head * Extra space * Remove fmt print * Update beacon-chain/forkchoice/protoarray/nodes.go Co-Authored-By: Nishant Das <nishdas93@gmail.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Nishant Das <nish1993@hotmail.com>
32 lines
758 B
Python
32 lines
758 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"doc.go",
|
|
"errors.go",
|
|
"helpers.go",
|
|
"nodes.go",
|
|
"types.go",
|
|
],
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/forkchoice/protoarray",
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
deps = [
|
|
"//shared/params:go_default_library",
|
|
"@io_opencensus_go//trace:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"helpers_test.go",
|
|
"nodes_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//shared/hashutil:go_default_library",
|
|
"//shared/params:go_default_library",
|
|
],
|
|
)
|