mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
Remove use of committee list from validator client (#15039)
* wip * fixing unit tests * changing is aggregator function * wip * fully removing the use of committee from validator client, adding a wrapper type for duties * fixing tests * fixing linting * fixing more tests * changelog * adding some more tests * Update proto/prysm/v1alpha1/validator.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * radek's feedback * removing accidently checked in --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -342,6 +342,7 @@ go_library(
|
||||
"eip_7521.go",
|
||||
"sync_committee_mainnet.go",
|
||||
"sync_committee_minimal.go", # keep
|
||||
"validator.go",
|
||||
":ssz_generated_altair", # keep
|
||||
":ssz_generated_bellatrix", # keep
|
||||
":ssz_generated_capella", # keep
|
||||
|
||||
25
proto/prysm/v1alpha1/validator.go
Normal file
25
proto/prysm/v1alpha1/validator.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package eth
|
||||
|
||||
import (
|
||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
||||
)
|
||||
|
||||
// ValidatorDutiesContainer is a wrapper that can be both used for the gRPC DutiesResponse and Rest API response structs for attestation, proposer, and sync duties.
|
||||
type ValidatorDutiesContainer struct {
|
||||
CurrentEpochDuties []*ValidatorDuty
|
||||
NextEpochDuties []*ValidatorDuty
|
||||
}
|
||||
|
||||
// ValidatorDuty is all the information needed to execute validator duties
|
||||
type ValidatorDuty struct {
|
||||
CommitteeLength uint64
|
||||
CommitteeIndex primitives.CommitteeIndex
|
||||
CommitteesAtSlot uint64
|
||||
ValidatorCommitteeIndex uint64
|
||||
AttesterSlot primitives.Slot
|
||||
ProposerSlots []primitives.Slot
|
||||
PublicKey []byte
|
||||
Status ValidatorStatus
|
||||
ValidatorIndex primitives.ValidatorIndex
|
||||
IsSyncCommittee bool
|
||||
}
|
||||
Reference in New Issue
Block a user