mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
6a0db800b3
* Add http endpoint for GetValidatorPerformance * Add tests * fix up client usage * Revert changes * refactor to reuse code * Move endpoint + move ComputeValidatorPerformance * Radek's comment change * Add Bazel file * Change endpoint path * Add server for http endpoints * Fix server * Create core package * Gaz * Add correct error code * Fix error code in test * Adding errors * Fix errors * Fix default GRPC error * Change http errors to core ones * Use error status without helper * Fix * Capitalize GRPC error messages --------- Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
15 lines
415 B
Go
15 lines
415 B
Go
package validator
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
)
|
|
|
|
// Server defines a server implementation for HTTP endpoints, providing
|
|
// access data relevant to the Ethereum Beacon Chain.
|
|
type Server struct {
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
SyncChecker sync.Checker
|
|
HeadFetcher blockchain.HeadFetcher
|
|
}
|