Documentation ¶
Index ¶
- Variables
- type BeaconChain
- func (b *BeaconChain) GenesisTime() time.Time
- func (b *BeaconChain) NetworkName() string
- func (b *BeaconChain) SecondsPerSlot() uint64
- func (b *BeaconChain) SlotsPerEpoch() uint64
- func (b *BeaconChain) Spec() *SpecConfig
- func (b *BeaconChain) Start() error
- func (b *BeaconChain) Stop() error
- func (b *BeaconChain) Wallclock() *ethwallclock.EthereumBeaconChain
- type Client
- type Config
- type NetworkConfig
- type SpecConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var AllClients = []Client{ ClientUnknown, ClientLighthouse, ClientNimbus, ClientTeku, ClientPrysm, ClientLodestar, }
Functions ¶
This section is empty.
Types ¶
type BeaconChain ¶
type BeaconChain struct {
// contains filtered or unexported fields
}
func NewBeaconChain ¶
func NewBeaconChain(log logrus.FieldLogger, config *Config) (*BeaconChain, error)
func (*BeaconChain) GenesisTime ¶
func (b *BeaconChain) GenesisTime() time.Time
func (*BeaconChain) NetworkName ¶
func (b *BeaconChain) NetworkName() string
func (*BeaconChain) SecondsPerSlot ¶
func (b *BeaconChain) SecondsPerSlot() uint64
func (*BeaconChain) SlotsPerEpoch ¶
func (b *BeaconChain) SlotsPerEpoch() uint64
func (*BeaconChain) Spec ¶
func (b *BeaconChain) Spec() *SpecConfig
func (*BeaconChain) Start ¶
func (b *BeaconChain) Start() error
func (*BeaconChain) Stop ¶
func (b *BeaconChain) Stop() error
func (*BeaconChain) Wallclock ¶
func (b *BeaconChain) Wallclock() *ethwallclock.EthereumBeaconChain
type Config ¶
type Config struct {
Network NetworkConfig `yaml:"network"`
}
type NetworkConfig ¶
type NetworkConfig struct { Name string `yaml:"name"` Spec SpecConfig `yaml:"spec"` }
func (*NetworkConfig) Validate ¶
func (c *NetworkConfig) Validate() error
type SpecConfig ¶
type SpecConfig struct { SecondsPerSlot uint64 `yaml:"seconds_per_slot"` SlotsPerEpoch uint64 `yaml:"slots_per_epoch"` GenesisTime uint64 `yaml:"genesis_time"` }
func (*SpecConfig) Validate ¶
func (c *SpecConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.