Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControllerOptions ¶
type ControllerOptions struct {
Context context.Context
DB basedb.IDb
Logger *zap.Logger
SignatureCollectionTimeout time.Duration `` /* 152-byte string literal not displayed */
ETHNetwork *core.Network
Network network.Network
SlotQueue slotqueue.Queue
Beacon beacon.Beacon
}
ControllerOptions for controller struct creation
type IController ¶
type IController interface {
ListenToEth1Events(cn pubsub.SubjectChannel)
StartValidators() map[string]*Validator
GetValidatorsPubKeys() [][]byte
GetValidator(pubKey string) (*Validator, bool)
Subject() pubsub.Subscriber
}
IController interface
func NewController ¶
func NewController(options ControllerOptions) IController
NewController creates new validator controller
type Options ¶
type Options struct {
Context context.Context
Logger *zap.Logger
SignatureCollectionTimeout time.Duration
SlotQueue slotqueue.Queue
Network network.Network
Beacon beacon.Beacon
ETHNetwork *core.Network
}
Options to add in validator struct creation
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator struct that manages all ibft wrappers
func (*Validator) ExecuteDuty ¶
ExecuteDuty by slotQueue
Source Files
¶
Click to show internal directories.
Click to hide internal directories.