client_consts

package
v0.1.13-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lighthouse = "lighthouse"
	Prysm      = "prysm"
	Lodestar   = "lodestar"
	Teku       = "teku"
)
View Source
const (
	Geth       = "geth"
	Nethermind = "nethermind"
)

TODO others

Variables

View Source
var GethBeaconPorts = []string{"8545:8545"}
View Source
var LighthouseBeaconPorts = []string{"5052:5052"}

Functions

func GetAnyClientApiPorts

func GetAnyClientApiPorts(clientName string) []string

func GetClientBeaconPortsHTTP

func GetClientBeaconPortsHTTP(clientName string) []string

func IsConsensusClient

func IsConsensusClient(name string) bool

func IsExecClient

func IsExecClient(name string) bool

Types

type ConsensusClientSyncStatus

type ConsensusClientSyncStatus struct {
	Data struct {
		HeadSlot     string `json:"head_slot"`
		SyncDistance string `json:"sync_distance"`
		IsSyncing    bool   `json:"is_syncing"`
	} `json:"data"`
}

type ExecClientSyncStatus

type ExecClientSyncStatus struct {
	JsonRPC string `json:"jsonrpc"`
	Id      int    `json:"id"`
	Result  bool   `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL