Documentation ¶
Index ¶
- func IsBetterUpdate(newUpdate, oldUpdate *v2.LightClientUpdate) (bool, error)
- func IsFinalityUpdate(update *v2.LightClientUpdate) bool
- func IsSyncCommitteeUpdate(update *v2.LightClientUpdate) bool
- type Server
- func (s *Server) GetLightClientBootstrap(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientFinalityUpdate(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientOptimisticUpdate(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientUpdatesByRange(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBetterUpdate ¶ added in v5.1.0
func IsBetterUpdate(newUpdate, oldUpdate *v2.LightClientUpdate) (bool, error)
func IsFinalityUpdate ¶ added in v5.1.0
func IsFinalityUpdate(update *v2.LightClientUpdate) bool
func IsSyncCommitteeUpdate ¶ added in v5.1.0
func IsSyncCommitteeUpdate(update *v2.LightClientUpdate) bool
Types ¶
type Server ¶
type Server struct { Blocker lookup.Blocker Stater lookup.Stater HeadFetcher blockchain.HeadFetcher BeaconDB db.HeadAccessDatabase }
func (*Server) GetLightClientBootstrap ¶
func (s *Server) GetLightClientBootstrap(w http.ResponseWriter, req *http.Request)
GetLightClientBootstrap - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/bootstrap.yaml
func (*Server) GetLightClientFinalityUpdate ¶
func (s *Server) GetLightClientFinalityUpdate(w http.ResponseWriter, req *http.Request)
GetLightClientFinalityUpdate - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/finality_update.yaml
func (*Server) GetLightClientOptimisticUpdate ¶
func (s *Server) GetLightClientOptimisticUpdate(w http.ResponseWriter, req *http.Request)
GetLightClientOptimisticUpdate - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/optimistic_update.yaml
func (*Server) GetLightClientUpdatesByRange ¶
func (s *Server) GetLightClientUpdatesByRange(w http.ResponseWriter, req *http.Request)
GetLightClientUpdatesByRange - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/updates.yaml