Eip 7549 core (#14037)

* interfaces move

* build fix

* remove annoying warning

* more build fixes

* review

* core code

* tests part 1

* tests part 2

* TranslateParticipation doesn't need Electra

* remove unused function

* pending atts don't need Electra

* tests part 3

* build fixes

* review

* remove newline

* review

* fix test
This commit is contained in:
Radosław Kapka
2024-05-28 22:56:36 +09:00
committed by GitHub
parent 2f2152e039
commit 2d15e53dab
35 changed files with 924 additions and 236 deletions

View File

@@ -3,6 +3,8 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"committee_bits_mainnet.go",
"committee_bits_minimal.go", # keep
"committee_index.go",
"domain.go",
"epoch.go",
@@ -20,6 +22,7 @@ go_library(
deps = [
"//math:go_default_library",
"@com_github_prysmaticlabs_fastssz//:go_default_library",
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
],
)

View File

@@ -0,0 +1,9 @@
//go:build !minimal
package primitives
import "github.com/prysmaticlabs/go-bitfield"
func NewAttestationCommitteeBits() bitfield.Bitvector64 {
return bitfield.NewBitvector64()
}

View File

@@ -0,0 +1,9 @@
//go:build minimal
package primitives
import "github.com/prysmaticlabs/go-bitfield"
func NewAttestationCommitteeBits() bitfield.Bitvector4 {
return bitfield.NewBitvector4()
}