Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { GenesisTimeFetcher blockchain.TimeFetcher SyncChecker sync.Checker HeadFetcher blockchain.HeadFetcher }
Server defines a server implementation for HTTP endpoints, providing access data relevant to the Ethereum Beacon Chain.
func (*Server) GetValidatorPerformance ¶
func (vs *Server) GetValidatorPerformance(w http.ResponseWriter, r *http.Request)
GetValidatorPerformance is an HTTP handler for GetValidatorPerformance.
type ValidatorPerformanceRequest ¶
type ValidatorPerformanceRequest struct { PublicKeys [][]byte `json:"public_keys,omitempty"` Indices []primitives.ValidatorIndex `json:"indices,omitempty"` }
type ValidatorPerformanceResponse ¶
type ValidatorPerformanceResponse struct { PublicKeys [][]byte `json:"public_keys,omitempty"` CorrectlyVotedSource []bool `json:"correctly_voted_source,omitempty"` CorrectlyVotedTarget []bool `json:"correctly_voted_target,omitempty"` CorrectlyVotedHead []bool `json:"correctly_voted_head,omitempty"` CurrentEffectiveBalances []uint64 `json:"current_effective_balances,omitempty"` BalancesBeforeEpochTransition []uint64 `json:"balances_before_epoch_transition,omitempty"` BalancesAfterEpochTransition []uint64 `json:"balances_after_epoch_transition,omitempty"` MissingValidators [][]byte `json:"missing_validators,omitempty"` InactivityScores []uint64 `json:"inactivity_scores,omitempty"` }
Click to show internal directories.
Click to hide internal directories.