Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface {
Start() error
StartEth1(syncOffset *eth1.SyncOffset) error
}
Node represents the behavior of SSV node
type Options ¶
type Options struct {
ETHNetwork beaconprotocol.Network
Beacon beaconprotocol.Beacon
Network network.P2PNetwork
Context context.Context
Logger *zap.Logger
Eth1Client eth1.Client
DB basedb.IDb
ValidatorController validator.Controller
DutyExec duties.DutyExecutor
// genesis epoch
GenesisEpoch uint64 `yaml:"GenesisEpoch" env:"GENESIS_EPOCH" env-description:"Genesis Epoch SSV node will start"`
// max slots for duty to wait
DutyLimit uint64 `yaml:"DutyLimit" env:"DUTY_LIMIT" env-default:"32" env-description:"max slots to wait for duty to start"`
ValidatorOptions validator.ControllerOptions `yaml:"ValidatorOptions"`
ForkVersion forksprotocol.ForkVersion
}
Options contains options to create the node
type Storage ¶
type Storage interface {
eth1.SyncOffsetStorage
eth12.RegistryStore
registrystorage.OperatorsCollection
GetPrivateKey() (*rsa.PrivateKey, bool, error)
SetupPrivateKey(generateIfNone bool, operatorKeyBase64 string) error
}
Storage represents the interface for ssv node storage
Click to show internal directories.
Click to hide internal directories.